[examples] chore(deps): bump pillow in /examples/forms_files_images (#2858)
Bumps pillow from 12.1.1 to 12.2.0.
updated-dependencies:
- dependency-name: pillow dependency-version: 12.2.0 dependency-type: indirect …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Flask-Admin
Flask-Admin is now part of Pallets-Eco, an open source organization managed by the Pallets team to facilitate community maintenance of Flask extensions. Please update your references to
https://github.com/pallets-eco/flask-admin.git.Pallets Community Ecosystem
Introduction
Flask-Admin is a batteries-included, simple-to-use Flask extension that lets you add admin interfaces to Flask applications. It is inspired by the django-admin package, but implemented in such a way that the developer has total control over the look, feel, functionality and user experience of the resulting application.
Out-of-the-box, Flask-Admin plays nicely with various ORM's, including
It also boasts a simple file management interface and a Redis client console.
The biggest feature of Flask-Admin is its flexibility. It aims to provide a set of simple tools that can be used to build admin interfaces of any complexity. To start off, you can create a very simple application in no time, with auto-generated CRUD-views for each of your models. Then you can further customize those views and forms as the need arises.
Flask-Admin is an active project, well-tested and production-ready.
Examples
Several usage examples are included in the /examples folder. Please add your own, or improve on the existing examples, and submit a pull-request.
How to run an example
Clone the repository and navigate to an example (for this example we are using SQLAlchemy Example):
Run the example using
uv, which will manage the environment and dependencies automatically:Check the Flask app running on http://localhost:5000.
Documentation
Flask-Admin is extensively documented, you can find all of the documentation at https://flask-admin.readthedocs.io/en/latest/.
The docs are auto-generated from the .rst files in the /doc folder. If you come across any errors or if you think of anything else that should be included, feel free to make the changes and submit a pull-request.
To build the docs in your local environment, from the project directory:
Installation
To install Flask-Admin using pip, simply:
Contributing
If you are a developer working on and maintaining Flask-Admin, checkout the repo by doing:
Flask-Admin uses
uvto manage its dependencies and developer environment. With the repository checked out, to install the minimum version of Python that Flask-Admin supports, create your virtual environment, and install the required dependencies, run:This will install Flask-Admin but without any of the optional extra dependencies, such as those for sqlalchemy or mongoengine support. To install all extras, run:
Finally, enable pre-commit hooks:
Tests
Tests are run with pytest. If you are not familiar with this package, you can find out more on their website.
Running tests inside the devcontainer (eg when using VS Code)
If you are developing with the devcontainer configuration, then you can run tests directly using either of the following commands.
To just run the test suite with the default python installation, use:
To run the test suite against all supported python versions, and also run other checks performed by CI, use:
Running tests as a one-off via docker-compose run /
make testIf you don’t use devcontainers then you can run the tests using docker (you will need to install and setup docker yourself). Then you can use:
This will use the devcontainer docker-compose configuration to start up postgres, azurite and mongo.
You can also run the full test suite including CI checks with:
3rd Party Stuff
Flask-Admin is built with the help of Bootstrap, Select2 and Bootswatch.
If you want to localize your application, install the Flask-Babel package.
You can help improve Flask-Admin's translations by opening a PR.
As a developer who’s changed some text in Flask-Admin
As a translator who’s updated some
.po/.mofilesRun
cd babelRun./babel.sh