switch kubernetes deployment to daphne server
This commit is contained in:
13
passbook/core/asgi.py
Normal file
13
passbook/core/asgi.py
Normal 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.core.settings")
|
||||
django.setup()
|
||||
application = get_default_application()
|
||||
Reference in New Issue
Block a user