""" 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 if "DJANGO_SETTINGS_MODULE" not in os.environ: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gestioasso.settings.local") django.setup() application = get_default_application()