core: revert to cherrypy for main webserver and use daphne only for app_gw

This commit is contained in:
Jens Langhammer
2019-07-04 15:23:05 +02:00
parent 4d0148193f
commit ed25801e6e
8 changed files with 62 additions and 21 deletions

13
passbook/app_gw/asgi.py Normal file
View File

@ -0,0 +1,13 @@
"""
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
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "passbook.root.settings")
django.setup()
application = get_default_application()