diff --git a/src/bornhack/asgi.py b/src/bornhack/asgi.py index af900642..80b31c0c 100644 --- a/src/bornhack/asgi.py +++ b/src/bornhack/asgi.py @@ -1,7 +1,12 @@ +""" +ASGI entrypoint. Configures Django and then runs the application +defined in the ASGI_APPLICATION setting. +""" import os -from channels.asgi import get_channel_layer +import django +from channels.routing import get_default_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bornhack.settings") - -channel_layer = get_channel_layer() +django.setup() +application = get_default_application()