django-template/asgi.py

12 lines
196 B
Python
Raw Normal View History

2021-04-01 09:48:35 +02:00
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
import django
django.setup()
from channels.routing import ProtocolTypeRouter
application = ProtocolTypeRouter({})