django1/django
Allan Feldman 36fa071d6e Fixed #32889 -- Allowed per-request sync_to_async context in ASGIHandler .
By using a asgiref's ThreadSensitiveContext context manager, requests
will be able to execute independently of other requests when sync work
is involved.

Prior to this commit, a single global thread was used to execute any
sync work independent of the request from which that work was scheduled.
This could result in contention for the global sync thread in the case
of a slow sync function.

Requests are now isolated to their own sync thread.
2021-07-01 12:13:19 +02:00
..
apps Refs #32355 -- Corrected comments about Python's _NamespacePath. 2021-03-26 10:17:10 +01:00
conf Updated translations from Transifex. 2021-06-28 07:08:39 +02:00
contrib Fixed #32884 -- Fixed centering of the header on admin login page. 2021-06-29 07:41:52 +02:00
core Fixed #32889 -- Allowed per-request sync_to_async context in ASGIHandler . 2021-07-01 12:13:19 +02:00
db Fixed #32786 -- Moved subquery ordering clearing optimization to the _in lookup. 2021-06-30 10:08:55 +02:00
dispatch Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert" in various code. 2021-06-25 06:55:47 +02:00
forms Fixed #32807 -- Fixed JSONField crash when redisplaying None values. 2021-06-28 11:02:08 +02:00
http Refs #24121 -- Added __repr__() to StreamingHttpResponse and subclasses. 2021-06-22 21:28:48 +02:00
middleware Fixed #32817 -- Added the token source to CsrfViewMiddleware's bad token error messages. 2021-06-23 16:07:15 +02:00
template Fixed #32824 -- Improved performance of NodeList.render(). 2021-06-11 12:22:06 +02:00
templatetags Refs #24121 -- Added __repr__() to AdminForm, BlockContext, BlockTranslateNode, and IncludeNode. 2021-06-10 12:47:53 +02:00
test Refs #32655 -- Improved error if iter_test_cases() is passed a string. 2021-06-29 20:41:40 +02:00
urls Fixed #32870 -- Improved error message when URLconf is empty. 2021-06-22 08:09:53 +02:00
utils Refs #32880 -- Moved logging reference to new document. 2021-06-30 07:21:52 +02:00
views Refs #32508 -- Raised ImproperlyConfigured/TypeError instead of using "assert" in various code. 2021-06-25 06:55:47 +02:00
__init__.py Bumped version; master is now 4.0 pre-alpha. 2021-01-14 17:50:04 +01:00
__main__.py Fixed #24857 -- Added "python -m django" entry point. 2015-09-07 19:54:32 -04:00
shortcuts.py Made small readability improvements. 2020-10-28 20:20:20 +01:00