Skip to content

Commit 17f8a03

Browse files
blueyedcarltongibson
authored andcommitted
runserver: skip ASGI_APPLICATION check with --noasgi (#1289)
1 parent fc12809 commit 17f8a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

channels/management/commands/runserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def handle(self, *args, **options):
5151
self.http_timeout = options.get("http_timeout", None)
5252
self.websocket_handshake_timeout = options.get("websocket_handshake_timeout", 5)
5353
# Check Channels is installed right
54-
if not hasattr(settings, "ASGI_APPLICATION"):
54+
if options["use_asgi"] and not hasattr(settings, "ASGI_APPLICATION"):
5555
raise CommandError(
5656
"You have not set ASGI_APPLICATION, which is needed to run the server."
5757
)

0 commit comments

Comments
 (0)