Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Latest commit

 

History

History
69 lines (42 loc) · 1.24 KB

README.rst

File metadata and controls

69 lines (42 loc) · 1.24 KB

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.