The best admin interface framework for Flask. With scaffolding for Mongoengine, Django and SQLAlchemy.
Project description
The best admin interface framework for Flask. As good as Django admin.
With scaffolding for Mongoengine, Django and SQLAlchemy.
Installation
First, you must do:
pip install Flask-SuperAdmin
Or:
python setup.py install
Admin interface
Influenced heavily by the Django admin, provides easy create/edit/delete functionality for your project’s models (Mongoengine, Django or SQLAlchemy).
Introduction
This is library for building adminstrative interface on top of Flask framework.
Instead of providing simple scaffolding for SQLAlchemy, Mongoengine or Django models, Flask-SuperAdmin provides tools that can be used to build adminstrative interface of any complexity, using consistent look and feel.
Small example (Flask initialization omitted):
from flask.ext import superadmin app = Flask(__name__) admin = superadmin.Admin() # For SQLAlchemy from flask.ext.superadmin.contrib import sqlamodel admin.add_view(sqlamodel.ModelView(User, db.session)) # User is a SQLAlchemy Model, db.session is the session of our db # For Mongoengine Documents from flask.ext.superadmin.contrib import mongoenginemodel admin.add_view(mongoenginemodel.ModelView(User)) # User is a Mongoengine Document Model # For Django Models from flask.ext.superadmin.contrib import djangomodel admin.add_view(djangomodel.ModelView(User)) # User is a Django Document Model admin.add_view(GalleryManager(name='Photos', category='Cats')) admin.setup_app(app)
Examples
Library comes with a lot of examples, you can find them in examples directory.
Documentation
Flask-SuperAdmin is extensively documented, you can find documentation here.
3rd Party Stuff
Flask-SuperAdmin is built with help of Twitter Bootstrap, Chosen, and jQuery.
Kudos
This library is a vitamined fork of the Flask-Admin package by Serge S. Koval.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.