OpenSlides/server/openslides/wsgi.py

17 lines
500 B
Python
Raw Normal View History

"""
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
from django.core.wsgi import get_wsgi_application
from .utils.main import setup_django_settings_module
2019-08-20 12:00:54 +02:00
from .utils.startup import run_startup_hooks
# Loads the openslides setting. You can use your own settings by setting the
# environment variable DJANGO_SETTINGS_MODULE
setup_django_settings_module(local_installation=True)
application = get_wsgi_application()
2019-08-20 12:00:54 +02:00
run_startup_hooks()