1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #31380 -- Added deployment system check for DJANGO_ALLOW_ASYNC_UNSAFE environment variable.

This commit is contained in:
hashlash
2020-03-21 03:20:48 +07:00
committed by Mariusz Felisiak
parent e9b014fbc5
commit 4a6f2b63d7
5 changed files with 49 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ Builtin tags
Django's system checks are organized using the following tags:
* ``admin``: Checks of any admin site declarations.
* ``async_support``: Checks asynchronous-related configuration.
* ``caches``: Checks cache related configuration.
* ``compatibility``: Flags potential problems with version upgrades.
* ``database``: Checks database-related configuration issues. Database checks
@@ -91,6 +92,10 @@ Django's system checks are organized using the following tags:
Some checks may be registered with multiple tags.
.. versionchanged:: 3.1
The ``async_support`` tag was added.
.. versionchanged:: 3.1
The ``database`` checks are now run only for database aliases specified
@@ -99,6 +104,17 @@ Some checks may be registered with multiple tags.
Core system checks
==================
Asynchronous support
--------------------
.. versionadded:: 3.1
The following checks verify your setup for :doc:`/topics/async`:
* **async.E001**: You should not set the ``DJANGO_ALLOW_ASYNC_UNSAFE``
environment variable in deployment. This disables :ref:`async safety
protection <async-safety>`.
Backwards compatibility
-----------------------