We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc12809 commit 17f8a03Copy full SHA for 17f8a03
channels/management/commands/runserver.py
@@ -51,7 +51,7 @@ def handle(self, *args, **options):
51
self.http_timeout = options.get("http_timeout", None)
52
self.websocket_handshake_timeout = options.get("websocket_handshake_timeout", 5)
53
# Check Channels is installed right
54
- if not hasattr(settings, "ASGI_APPLICATION"):
+ if options["use_asgi"] and not hasattr(settings, "ASGI_APPLICATION"):
55
raise CommandError(
56
"You have not set ASGI_APPLICATION, which is needed to run the server."
57
)
0 commit comments