
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 used, …
Installation — Flask Documentation (3.1.x)
Installation Python Version ¶ We recommend using the latest version of Python. Flask supports Python 3.9 and newer. Dependencies ¶ These distributions will be installed automatically when installing …
Quickstart — Flask Documentation (3.1.x)
Save it as hello.py or something similar. Make sure to not call your application flask.py because this would conflict with Flask itself. To run the application, use the flask command or python -m flask. You …
Tutorial — Flask Documentation (3.1.x)
The tutorial only uses what’s provided by Flask and Python. In another project, you might decide to use Extensions or other libraries to make some tasks simpler. Flask is flexible. It doesn’t require you to …
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. The file …
API — Flask Documentation (3.1.x)
API ¶ This part of the documentation covers all the interfaces of Flask. For parts where Flask depends on external libraries, we document the most important right here and provide links to the canonical …
欢迎来到 Flask 的世界 — Flask Documentation (3.1.x)
Welcome to Flask's documentation. 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. …
Templates — Flask Documentation (3.1.x)
Unlike Python, blocks are denoted by start and end tags rather than indentation since static text within a block could change indentation. The Base Layout ¶ Each page in the application will have the same …
Development Server — Flask Documentation (3.1.x)
Development Server ¶ Flask provides a run command to run the application with a development server. In debug mode, this server provides an interactive debugger and will reload when code is changed.
SQLAlchemy in Flask — Flask Documentation (3.1.x)
Flask-SQLAlchemy Extension ¶ Because SQLAlchemy is a common database abstraction layer and object relational mapper that requires a little bit of configuration effort, there is a Flask extension that …