Merge branch 'pallets:main' into patch-1
This commit is contained in:
commit
626c070d67
4 changed files with 8 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ wrapping the Flask app,
|
|||
asgi_app = WsgiToAsgi(app)
|
||||
|
||||
and then serving the ``asgi_app`` with the ASGI server, e.g. using
|
||||
`Hypercorn <https://gitlab.com/pgjones/hypercorn>`_,
|
||||
`Hypercorn <https://github.com/pgjones/hypercorn>`_,
|
||||
|
||||
.. sourcecode:: text
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,11 @@ Welcome to Flask
|
|||
.. image:: _static/flask-horizontal.png
|
||||
:align: center
|
||||
|
||||
Welcome to Flask's documentation. Get started with :doc:`installation`
|
||||
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`
|
||||
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
|
||||
complete application with Flask. Common patterns are described in the
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ which records the request that produced that response.
|
|||
.. code-block:: python
|
||||
|
||||
def test_logout_redirect(client):
|
||||
response = client.get("/logout")
|
||||
response = client.get("/logout", follow_redirects=True)
|
||||
# Check that there was one redirect response.
|
||||
assert len(response.history) == 1
|
||||
# Check that the second request was to the index page.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ page. Demonstrates using |fetch|_, |XMLHttpRequest|_, and
|
|||
.. |jQuery.ajax| replace:: ``jQuery.ajax``
|
||||
.. _jQuery.ajax: https://api.jquery.com/jQuery.ajax/
|
||||
|
||||
.. _Flask docs: https://flask.palletsprojects.com/patterns/jquery/
|
||||
.. _Flask docs: https://flask.palletsprojects.com/patterns/javascript/
|
||||
|
||||
|
||||
Install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue