mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +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
|
@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue