|
- 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, customized, and extended
- 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 Flask Werkzeug implements WSGI, the standard Python interface between applications and servers Jinja is a template language that renders the pages your application serves MarkupSafe comes with
- 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 looks something like this:
- 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 use any particular project or code layout However, when first starting, it’s helpful to use a more structured approach
- 欢迎来到 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, customized, and extended
- 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 documentation Application Object ¶ class flask Flask(import_name, static_url_path=None, static_folder='static', static_host=None, host_matching=False, subdomain_matching=False, template
- 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 names at the top of each code block are relative to this directory
- Application Structure and Lifecycle — Flask Documentation (3. 1. x)
Application Structure and Lifecycle ¶ Flask makes it pretty easy to write a web application But there are quite a few different parts to an application and to each request it handles Knowing what happens during application setup, serving, and handling requests will help you know what’s possible in Flask and how to structure your application Application Setup ¶ The first step in creating
|
|
|