bornhack-website/src/bornhack/asgi.py
2018-04-14 17:04:21 +02:00

13 lines
317 B
Python

"""
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
import os
import django
from channels.routing import get_default_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bornhack.settings")
django.setup()
application = get_default_application()