demo-HTML-over-WebSockets-i.../asgi.py

12 lines
196 B
Python
Raw Normal View History

2021-03-07 18:15:29 +01:00
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
import django
django.setup()
from channels.routing import ProtocolTypeRouter
application = ProtocolTypeRouter({})