fixup asgi.py for channels2 goodness
This commit is contained in:
parent
63c2f68990
commit
f50f1fe2e0
|
@ -1,7 +1,12 @@
|
||||||
|
"""
|
||||||
|
ASGI entrypoint. Configures Django and then runs the application
|
||||||
|
defined in the ASGI_APPLICATION setting.
|
||||||
|
"""
|
||||||
import os
|
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")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bornhack.settings")
|
||||||
|
django.setup()
|
||||||
channel_layer = get_channel_layer()
|
application = get_default_application()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue