Change TWISTED_REACTOR in the default template.

This commit is contained in:
Andrey Rakhmatullin 2022-10-14 22:03:54 +06:00
parent 715c05d504
commit 62cc26e209
2 changed files with 6 additions and 0 deletions

View File

@ -1642,6 +1642,11 @@ install the default reactor defined by Twisted for the current platform. This
is to maintain backward compatibility and avoid possible problems caused by
using a non-default reactor.
.. versionchanged:: VERSION
The :command:`startproject` command now sets this setting to
``twisted.internet.asyncioreactor.AsyncioSelectorReactor`` in the generated
``settings.py`` file.
For additional information, see :doc:`core/howto/choosing-reactor`.

View File

@ -89,3 +89,4 @@ ROBOTSTXT_OBEY = True
# Set settings whose default value is deprecated to a future-proof value
REQUEST_FINGERPRINTER_IMPLEMENTATION = 'VERSION'
TWISTED_REACTOR = 'twisted.internet.asyncioreactor.AsyncioSelectorReactor'