A set of generic class-based views for flask
Project description
Flask-Generic-Views is a set of generic class-based views for the Flask microframework inspired by the ones in Django.
from flask import Flask
from flask.ext.generic_views import TemplateView
app = Flask(__name__)
index_view = TemplateView.as_view('index', template_file='index.html')
app.add_url_rule('/', index_view)
if __name__ == '__main__':
app.run()
Database Support
Currently Flask-Generic-Views supports use of Models created with SQLAlchemy.
Installation
To install the basic views:
$ pip install flask-generic-views
To install optional SQLAlchemy support:
$ pip install flask-generic-views[sqlalchemy]
To install all optional packages:
$ pip install flask-generic-views[all]
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Generic-Views-0.1.0.tar.gz
(12.4 kB
view hashes)
Close
Hashes for Flask-Generic-Views-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58bda57af3927ce26fcff4431b6ffc6d0d83e7041df31c55e128df1815fd4ea6 |
|
MD5 | 97aae7c1b4294d9b637a2f35b684f22b |
|
BLAKE2b-256 | 0c06e3711c3fae820c89537df25db302dfa0400dd3d1b6820d3640d4f158804e |