
Welcome to Flask — Flask Documentation (3.1.x)
Flask provides configuration and conventions, with sensible defaults, to get started. This section of the documentation explains the different parts of the Flask framework and how they can be …
Quickstart — Flask Documentation (3.1.x)
Quickstart ¶ Eager to get started? This page gives a good introduction to Flask. Follow Installation to set up a project and install Flask first. A Minimal Application ¶ A minimal Flask application …
Installation — Flask Documentation (3.1.x)
Flask is now installed. Check out the Quickstart or go to the Documentation Overview.
Tutorial — Flask Documentation (3.1.x)
Check out the Quickstart for an overview of what Flask can do, then dive into the docs to find out more. The tutorial only uses what’s provided by Flask and Python.
欢迎来到 Flask 的世界 — Flask Documentation (3.1.x)
This section of the documentation explains the different parts of the Flask framework and how they can be used, customized, and extended. Beyond Flask itself, look for community …
API — Flask Documentation (3.1.x)
Flask parses incoming request data for you and gives you access to it through that global object. Internally Flask makes sure that you always get the correct data for the active thread if you are …
Project Layout — Flask Documentation (3.1.x)
Then follow the installation instructions to set up a Python virtual environment and install Flask for your project. The tutorial will assume you’re working from the flask-tutorial directory from now on.
Application Structure and Lifecycle — Flask Documentation (3.1.x)
The first step in creating a Flask application is creating the application object. Each Flask application is an instance of the Flask class, which collects all configuration, extensions, and …
Using async and await — Flask Documentation (3.1.x)
Routes, error handlers, before request, after request, and teardown functions can all be coroutine functions if Flask is installed with the async extra (pip install flask[async]). This allows views to …
Testing Flask Applications — Flask Documentation (3.1.x)
Testing Flask Applications ¶ Flask provides utilities for testing an application. This documentation goes over techniques for working with different parts of the application in tests. We will use the …