gestioCOF/gestioasso/asgi.py

16 lines
378 B
Python
Raw Normal View History

2022-06-27 15:34:24 +02:00
"""
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
2016-09-06 01:26:44 +02:00
import os
2022-06-27 15:34:24 +02:00
import django
from channels.routing import get_default_application
2016-09-06 01:26:44 +02:00
if "DJANGO_SETTINGS_MODULE" not in os.environ:
2022-06-27 15:34:24 +02:00
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gestioasso.settings.local")
2016-09-06 01:26:44 +02:00
2022-06-27 15:34:24 +02:00
django.setup()
application = get_default_application()