Merge branch 'pallets:main' into patch-1

This commit is contained in:
Dontrell Henry 2023-11-08 00:49:52 -05:00 committed by GitHub
commit 626c070d67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View file

@ -20,7 +20,7 @@ wrapping the Flask app,
asgi_app = WsgiToAsgi(app) asgi_app = WsgiToAsgi(app)
and then serving the ``asgi_app`` with the ASGI server, e.g. using 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 .. sourcecode:: text

View file

@ -6,7 +6,11 @@ Welcome to Flask
.. image:: _static/flask-horizontal.png .. image:: _static/flask-horizontal.png
:align: center :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 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 more detailed :doc:`tutorial/index` that shows how to create a small but
complete application with Flask. Common patterns are described in the complete application with Flask. Common patterns are described in the

View file

@ -192,7 +192,7 @@ which records the request that produced that response.
.. code-block:: python .. code-block:: python
def test_logout_redirect(client): def test_logout_redirect(client):
response = client.get("/logout") response = client.get("/logout", follow_redirects=True)
# Check that there was one redirect response. # Check that there was one redirect response.
assert len(response.history) == 1 assert len(response.history) == 1
# Check that the second request was to the index page. # Check that the second request was to the index page.

View file

@ -15,7 +15,7 @@ page. Demonstrates using |fetch|_, |XMLHttpRequest|_, and
.. |jQuery.ajax| replace:: ``jQuery.ajax`` .. |jQuery.ajax| replace:: ``jQuery.ajax``
.. _jQuery.ajax: https://api.jquery.com/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 Install