Flask extension that generates administrative web interfaces on top of existing data models, grouping create, read, update, and delete views per model.
Overview
Flask-Admin solves the problem of building an admin interface on top of an existing data model in Flask microservice setups. It groups CRUD view logic into classes tied to database models so each admin page maps to methods on those views.
It targets Python 3.10 or higher and supports many database backends through contrib modules, including SQLAlchemy, MongoEngine, Peewee, and others documented in the package.
Documentation covers authorization, custom views, batch actions, file management, localization with Flask-Babel, and template customization. Examples illustrate common configurations.
The interface can bootstrap simple applications quickly with auto-generated CRUD views, then allow tighter control over field order, input types, hints, and validation.
Key features
- Model-centric CRUD view classes
- Multiple database backend contribs
- Custom views and menu grouping
- Form scaffolding and field rules
- Batch actions on model rows
- Built-in template customization hooks
- CSRF and CSP configuration options
- Internationalization via Flask-Babel
Use cases
- Internal admin panels for Flask APIs
- Rapid CRUD over SQL or NoSQL models
- Customized operator workflows on data
- Localized management interfaces