mirror of https://github.com/openspug/spug
U api update
parent
2defce4c36
commit
1b617fa146
|
@ -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()
|
Loading…
Reference in New Issue