We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2fc01b commit 62d96dcCopy full SHA for 62d96dc
docs/deploying.rst
@@ -25,9 +25,9 @@ Here's an example of what that ``asgi.py`` might look like:
25
from django.conf.urls import url
26
from django.core.asgi import get_asgi_application
27
28
- # Fetch Django ASGI application early to ensure AppRegistry is populated
29
- # before importing consumers and AuthMiddlewareStack that may import ORM
30
- # models.
+ # Fetch Django ASGI application early to ensure Django settings are
+ # configured and the AppRegistry is populated before importing consumers
+ # and AuthMiddlewareStack that may use ORM models or the settings.
31
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
32
django_asgi_app = get_asgi_application()
33
0 commit comments