2018-07-09 23:22:26 +02:00
|
|
|
"""
|
|
|
|
ASGI entrypoint. Configures Django and then runs the application
|
|
|
|
defined in the ASGI_APPLICATION setting.
|
|
|
|
"""
|
|
|
|
|
2020-05-28 11:40:41 +02:00
|
|
|
from django.core.wsgi import get_wsgi_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
|
2020-05-28 11:40:41 +02:00
|
|
|
setup_django_settings_module(local_installation=True)
|
|
|
|
application = get_wsgi_application()
|
2019-08-20 12:00:54 +02:00
|
|
|
run_startup_hooks()
|