Global web icon
palletsprojects.com
https://flask.palletsprojects.com/
Welcome to Flask — Flask Documentation (3.1.x)
Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications.
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/instal…
Installation — Flask Documentation (3.1.x)
Flask is now installed. Check out the Quickstart or go to the Documentation Overview.
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/quicks…
Quickstart — Flask Documentation (3.1.x)
Flask provides a really simple way to give feedback to a user with the flashing system. The flashing system basically makes it possible to record a message at the end of a request and access it on the next (and only the next) request.
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/tutori…
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.
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/tutori…
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.
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/patter…
Single-Page Applications — Flask Documentation (3.1.x)
Flask can be used to serve Single-Page Applications (SPA) by placing static files produced by your frontend framework in a subfolder inside of your project. You will also need to create a catch-all endpoint that routes all requests to your SPA.
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/zh-cn/
欢迎来到 Flask 的世界 — Flask Documentation (3.1.x)
本部分文档将介绍 Flask 框架的各个组成部分,以及如何使用、定制和扩展它们。 除了 Flask 本身,还可以查找由社区维护的扩展,以添加更多功能。
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/api/
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 in a multithreaded environment.
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/patter…
Using SQLite 3 with Flask — Flask Documentation (3.1.x)
In Flask you can easily implement the opening of database connections on demand and closing them when the context dies (usually at the end of the request). Here is a simple example of how you can use SQLite 3 with Flask:
Global web icon
palletsprojects.com
https://flask.palletsprojects.com/en/stable/testin…
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 pytest framework to set up and run our tests.