Flask-Admin¶
Why Flask? As a micro-framework, Flask lets you build web services with very little overhead. It offers freedom for you, the designer, to implement your project in a way that suits your particular application.
Why Flask-Admin? In a world of micro-services and APIs, Flask-Admin solves the boring problem of building an admin interface on top of an existing data model. With little effort, it lets you manage your web service’s data through a user-friendly interface.
How does it work? The basic concept behind Flask-Admin, is that it lets you build complicated interfaces by grouping individual views together in classes: Each web page you see on the frontend, represents a method on a class that has explicitly been added to the interface.
These view classes are especially helpful when they are tied to particular database models, because they let you group together all of the usual Create, Read, Update, Delete (CRUD) view logic into a single, self-contained class for each of your models.
What does it look like? Clone the GitHub repository and run the provided examples locally to get a feel for Flask-Admin. There are several to choose from in the examples directory.
- Introduction To Flask-Admin
- Advanced Functionality
- Enabling CSRF Protection
- CSP support
- Adding Custom Javascript and CSS
- Localization With Flask-Babel
- Using with Flask in host_matching mode
- Managing Files & Folders
- Adding A Redis Console
- Replacing Individual Form Fields
- Managing Geographical Models
- Customising Builtin Forms Via Rendering Rules
- Using Different Database Backends
- Migrating From Django
- Overriding the Form Scaffolding
- Customizing Batch Actions
- Raise exceptions instead of flash error messages
- Adding A Model Backend
- API
flask_admin.base
flask_admin.helpers
flask_admin.model
flask_admin.form
flask_admin.form.rules
flask_admin.form.fields
flask_admin.form.upload
flask_admin.tools
flask_admin.actions
flask_admin.contrib.sqla
flask_admin.contrib.sqla.fields
flask_admin.contrib.peewee
flask_admin.contrib.pymongo
flask_admin.contrib.fileadmin
flask_admin.model.template
- Changelog
Support¶
Python 3.8 or higher.