demo-HTML-over-WebSockets-i.../asgi.py
2021-03-07 18:15:29 +01:00

12 lines
196 B
Python

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
import django
django.setup()
from channels.routing import ProtocolTypeRouter
application = ProtocolTypeRouter({})