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
|
2018-10-06 12:35:49 +02:00
|
|
|
|
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
|
|
|
|
2016-09-24 19:34:36 +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()
|