We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6d7f71 commit b6dc8c1Copy full SHA for b6dc8c1
docs/tutorial/part_2.rst
@@ -263,14 +263,12 @@ The next step is to point the main ASGI configuration at the
263
from channels.security.websocket import AllowedHostsOriginValidator
264
from django.core.asgi import get_asgi_application
265
266
- from chat.routing import websocket_urlpatterns
267
-
268
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
269
# Initialize Django ASGI application early to ensure the AppRegistry
270
# is populated before importing code that may import ORM models.
271
django_asgi_app = get_asgi_application()
272
273
- import chat.routing
+ from chat.routing import websocket_urlpatterns
274
275
application = ProtocolTypeRouter(
276
{
0 commit comments