How to install Flask-SuperAdmin
- Download and install ActivePython
- Open Command Prompt
pypm install flask-superadmin
Flask-Superadmin is the best admin interface framework for Flask. As good as Django admin.
- Admin interface
- Scaffolding for MongoEngine, Django and SQLAlchemy
- File administrator (optional)
Influenced heavily by the Django admin, provides easy create/edit/delete functionality for your project's models (MongoEngine, Django or SQLAlchemy).
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.superadmin import Admin, model app = Flask(__name__) admin = Admin(app) # For SQLAlchemy (User is a SQLAlchemy Model/Table) admin.register(User, session=db.session) # For MongoEngine Documents (User is a MongoEngine Document) admin.register(User) # For Django Models (User is a Django Model) admin.register(User) # Adding a custom view admin.add_view(CustomView(name='Photos', category='Cats')) admin.setup_app(app)
For installing you have to do:
pip install Flask-SuperAdmin
python setup.py install
Library comes with a lot of examples, you can find them in examples directory.
Flask-SuperAdmin is extensively documented, you can find documentation here.
This library is a supervitamined fork of the Flask-Admin package by Serge S. Koval.