mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #35591 -- Added unsuitable for production console warning to runserver.
This commit is contained in:
parent
9582745257
commit
69aa13ffb9
5 changed files with 61 additions and 1 deletions
|
@ -134,6 +134,9 @@ You'll see the following output on the command line:
|
|||
Starting development server at http://127.0.0.1:8000/
|
||||
Quit the server with CONTROL-C.
|
||||
|
||||
WARNING: This is a development server. Do not use it in a production setting. Use a production WSGI or ASGI server instead.
|
||||
For more information on production servers see: https://docs.djangoproject.com/en/stable/howto/deployment/
|
||||
|
||||
.. note::
|
||||
Ignore the warning about unapplied database migrations for now; we'll deal
|
||||
with the database shortly.
|
||||
|
|
|
@ -947,6 +947,20 @@ multithreaded by default.
|
|||
Uses IPv6 for the development server. This changes the default IP address from
|
||||
``127.0.0.1`` to ``::1``.
|
||||
|
||||
.. envvar:: HIDE_PRODUCTION_WARNING
|
||||
|
||||
.. versionadded:: 5.2
|
||||
|
||||
By default, a warning is printed to the console that ``runserver`` is not
|
||||
suitable for production:
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
WARNING: This is a development server. Do not use it in a production setting. Use a production WSGI or ASGI server instead.
|
||||
For more information on production servers see: https://docs.djangoproject.com/en/stable/howto/deployment/
|
||||
|
||||
Set this environment variable to ``"true"`` to hide this warning.
|
||||
|
||||
Examples of using different ports and addresses
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
@ -194,7 +194,10 @@ Logging
|
|||
Management Commands
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* ...
|
||||
* A new warning is printed to the console when running :djadmin:`runserver` that
|
||||
``runserver`` is unsuitable for production. This warning can be hidden by
|
||||
setting the :envvar:`HIDE_PRODUCTION_WARNING` environment variable to
|
||||
``"true"``.
|
||||
|
||||
Migrations
|
||||
~~~~~~~~~~
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue