2018-07-09 23:22:26 +02:00
|
|
|
"""
|
|
|
|
ASGI entrypoint. Configures Django and then runs the application
|
|
|
|
defined in the ASGI_APPLICATION setting.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import django
|
|
|
|
from channels.routing import get_default_application
|
2016-05-29 08:29:14 +02:00
|
|
|
|
|
|
|
from .utils.main import setup_django_settings_module
|
2019-08-20 12:00:54 +02:00
|
|
|
from .utils.startup import run_startup_hooks
|
2016-05-29 08:29:14 +02:00
|
|
|
|
2018-07-09 23:22:26 +02:00
|
|
|
|
2016-05-29 08:29:14 +02:00
|
|
|
# Loads the openslides setting. You can use your own settings by setting the
|
|
|
|
# environment variable DJANGO_SETTINGS_MODULE
|
|
|
|
setup_django_settings_module()
|
2018-07-09 23:22:26 +02:00
|
|
|
django.setup()
|
2019-08-20 12:00:54 +02:00
|
|
|
run_startup_hooks()
|
2018-07-09 23:22:26 +02:00
|
|
|
application = get_default_application()
|