diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2019-04-12 06:15:18 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-06-20 12:29:43 +0200 |
| commit | a415ce70bef6d91036b00dd2c8544aed7aeeaaed (patch) | |
| tree | 3583cef22e9b56d2ed52456ab586d9c47620bc51 /docs/releases | |
| parent | cce47ff65a4dd3786c049ec14ee889e128ca7de9 (diff) | |
Fixed #30451 -- Added ASGI handler and coroutine-safety.
This adds an ASGI handler, asgi.py file for the default project layout,
a few async utilities and adds async-safety to many parts of Django.
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/3.0.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index ba7e9f18da..51d7f7c8bf 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -44,6 +44,28 @@ MariaDB support Django now officially supports `MariaDB <https://mariadb.org/>`_ 10.1 and higher. See :ref:`MariaDB notes <mariadb-notes>` for more details. +ASGI support +------------ + +Django 3.0 begins our journey to making Django fully async-capable by providing +support for running as an `ASGI <https://asgi.readthedocs.io/>`_ application. + +This is in addition to our existing WSGI support. Django intends to support +both for the foreseeable future. Async features will only be available to +applications that run under ASGI, however. + +There is no need to switch your applications over unless you want to start +experimenting with asynchronous code, but we have +:doc:`documentation on deploying with ASGI </howto/deployment/asgi/index>` if +you want to learn more. + +Note that as a side-effect of this change, Django is now aware of asynchronous +event loops and will block you calling code marked as "async unsafe" - such as +ORM operations - from an asynchronous context. If you were using Django from +async code before, this may trigger if you were doing it incorrectly. If you +see a ``SynchronousOnlyOperation`` error, then closely examine your code and +move any database operations to be in a synchronous child thread. + Minor features -------------- |
