2018-04-14 15:04:21 +00:00
|
|
|
"""
|
|
|
|
ASGI entrypoint. Configures Django and then runs the application
|
|
|
|
defined in the ASGI_APPLICATION setting.
|
|
|
|
"""
|
2017-04-15 18:01:24 +00:00
|
|
|
import os
|
2018-04-14 15:04:21 +00:00
|
|
|
import django
|
|
|
|
from channels.routing import get_default_application
|
2017-04-15 18:01:24 +00:00
|
|
|
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bornhack.settings")
|
2018-04-14 15:04:21 +00:00
|
|
|
django.setup()
|
|
|
|
application = get_default_application()
|