2019-01-06 06:59:25 +08:00
|
|
|
.. rst-class:: hide-header
|
2010-05-24 14:38:28 +08:00
|
|
|
|
2010-04-06 22:02:14 +08:00
|
|
|
Welcome to Flask
|
|
|
|
================
|
|
|
|
|
2025-06-10 05:31:31 +08:00
|
|
|
.. image:: _static/flask-horizontal.svg
|
2018-09-17 23:35:28 +08:00
|
|
|
:align: center
|
2025-06-10 05:31:31 +08:00
|
|
|
:height: 200px
|
2010-04-10 21:49:15 +08:00
|
|
|
|
2023-10-07 07:37:42 +08:00
|
|
|
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.
|
|
|
|
|
|
|
|
Get started with :doc:`installation`
|
2020-04-05 03:57:14 +08:00
|
|
|
and then get an overview with the :doc:`quickstart`. There is also a
|
|
|
|
more detailed :doc:`tutorial/index` that shows how to create a small but
|
2018-02-07 22:56:14 +08:00
|
|
|
complete application with Flask. Common patterns are described in the
|
2020-04-05 03:57:14 +08:00
|
|
|
:doc:`patterns/index` section. The rest of the docs describe each
|
|
|
|
component of Flask in detail, with a full reference in the :doc:`api`
|
|
|
|
section.
|
2010-04-06 22:02:14 +08:00
|
|
|
|
2023-04-21 02:34:48 +08:00
|
|
|
Flask depends on the `Werkzeug`_ WSGI toolkit, the `Jinja`_ template engine, and the
|
|
|
|
`Click`_ CLI toolkit. Be sure to check their documentation as well as Flask's when
|
|
|
|
looking for information.
|
2010-04-16 18:21:31 +08:00
|
|
|
|
2023-04-21 02:34:48 +08:00
|
|
|
.. _Werkzeug: https://werkzeug.palletsprojects.com
|
|
|
|
.. _Jinja: https://jinja.palletsprojects.com
|
|
|
|
.. _Click: https://click.palletsprojects.com
|
2010-04-16 18:21:31 +08:00
|
|
|
|
2019-06-24 03:27:25 +08:00
|
|
|
|
|
|
|
User's Guide
|
|
|
|
------------
|
|
|
|
|
2022-08-06 02:28:22 +08:00
|
|
|
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. Beyond Flask itself, look for
|
|
|
|
community-maintained extensions to add even more functionality.
|
2019-06-24 03:27:25 +08:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
installation
|
|
|
|
quickstart
|
|
|
|
tutorial/index
|
|
|
|
templating
|
|
|
|
testing
|
|
|
|
errorhandling
|
2020-07-29 02:14:17 +08:00
|
|
|
debugging
|
2019-06-24 03:27:25 +08:00
|
|
|
logging
|
|
|
|
config
|
|
|
|
signals
|
|
|
|
views
|
2023-02-11 06:48:02 +08:00
|
|
|
lifecycle
|
2019-06-24 03:27:25 +08:00
|
|
|
appcontext
|
|
|
|
reqcontext
|
|
|
|
blueprints
|
|
|
|
extensions
|
|
|
|
cli
|
|
|
|
server
|
|
|
|
shell
|
|
|
|
patterns/index
|
2024-04-08 01:24:40 +08:00
|
|
|
web-security
|
2019-06-24 03:27:25 +08:00
|
|
|
deploying/index
|
2021-04-07 06:31:28 +08:00
|
|
|
async-await
|
2019-06-24 03:27:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
API Reference
|
|
|
|
-------------
|
|
|
|
|
|
|
|
If you are looking for information on a specific function, class or
|
|
|
|
method, this part of the documentation is for you.
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
api
|
|
|
|
|
|
|
|
|
|
|
|
Additional Notes
|
|
|
|
----------------
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 2
|
|
|
|
|
|
|
|
design
|
|
|
|
extensiondev
|
|
|
|
contributing
|
2021-02-25 02:09:38 +08:00
|
|
|
license
|
|
|
|
changes
|