2018-08-14 20:12:52 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
"""
|
|
|
|
ASGI entrypoint. Configures Django and then runs the application
|
|
|
|
defined in the ASGI_APPLICATION setting.
|
|
|
|
"""
|
|
|
|
import os
|
2018-08-15 17:41:51 -04:00
|
|
|
|
2018-08-14 20:12:52 -04:00
|
|
|
import django
|
|
|
|
from channels.routing import get_default_application
|
|
|
|
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "titivillus.settings")
|
|
|
|
django.setup()
|
|
|
|
application = get_default_application()
|