Skip to content
A set of generic class-based views for the Flask microframework inspired by the ones in Django.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples/notepad
flask_generic_views
scripts
tests
.gitignore
.travis.yml
CHANGES
LICENSE
Makefile
README.rst
Vagrantfile
setup.cfg
setup.py
tox.ini

README.rst

Flask-Generic-Views

An extension to Flask that provides a set of generic class based views. It aims to simplify applications by providing a set of well tested base classes and pluggable views for common tasks.

For more information check the Documentation.

Example

from flask import Flask
from flask_generic_views import TemplateView, RedirectView

app = Flask(__name__)

index = RedirectView('index', url='/home')

app.add_url_rule('/', view_func=index)

home = TemplateView('home', template_name='home.html')

app.add_url_rule('/home', view_func=home)

if __name__ == '__main__':
    app.run()

Install

To install Flask-Generic-Views via pip:

pip install flask-generic-views

Source

To install from source:

git clone git://github.com/artisanofcode/flask-generic-views.git
cd flask-generic-views
python setup.py develop

History

See CHANGES

Licence

This project is licensed under the MIT licence.

Meta

This project uses Semantic Versioning.

You can’t perform that action at this time.