Skip to content

Commit 62d96dc

Browse files
Tweaked asgi.py example to mention Django settings.
Settings are configured by the django.setup() call when fetching the asgi application. Co-authored-by: Carlton Gibson <[email protected]>
1 parent f2fc01b commit 62d96dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/deploying.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Here's an example of what that ``asgi.py`` might look like:
2525
from django.conf.urls import url
2626
from django.core.asgi import get_asgi_application
2727
28-
# Fetch Django ASGI application early to ensure AppRegistry is populated
29-
# before importing consumers and AuthMiddlewareStack that may import ORM
30-
# models.
28+
# Fetch Django ASGI application early to ensure Django settings are
29+
# configured and the AppRegistry is populated before importing consumers
30+
# and AuthMiddlewareStack that may use ORM models or the settings.
3131
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
3232
django_asgi_app = get_asgi_application()
3333

0 commit comments

Comments
 (0)