1
0
mirror of https://github.com/django/django.git synced 2025-04-01 12:06:43 +00:00

[5.1.x] Updated instruction for deploying with Uvicorn and Gunicorn.

Backport of 03d52d2a52af89381ee5b1030c672f0daf27be12 from main.
This commit is contained in:
SirenityK 2024-09-05 14:32:46 -07:00 committed by Natalia
parent 33cd593420
commit 76bbeee273

View File

@ -47,13 +47,13 @@ To install Uvicorn and Gunicorn, use the following:
.. code-block:: shell .. code-block:: shell
python -m pip install uvicorn gunicorn python -m pip install uvicorn uvicorn-worker gunicorn
Then start Gunicorn using the Uvicorn worker class like this: Then start Gunicorn using the Uvicorn worker class like this:
.. code-block:: shell .. code-block:: shell
python -m gunicorn myproject.asgi:application -k uvicorn.workers.UvicornWorker python -m gunicorn myproject.asgi:application -k uvicorn_worker.UvicornWorker
.. _Uvicorn: https://www.uvicorn.org/ .. _Uvicorn: https://www.uvicorn.org/
.. _Gunicorn: https://gunicorn.org/ .. _Gunicorn: https://gunicorn.org/