U api update

pull/22/head
vapao 2020-01-07 21:27:11 +08:00
parent 2defce4c36
commit 1b617fa146
1 changed files with 12 additions and 0 deletions

12
spug_api/spug/asgi.py Normal file
View File

@ -0,0 +1,12 @@
"""
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', 'spug.settings')
django.setup()
application = get_default_application()