Compare commits

..

No commits in common. "982a2462638eff1e5880c0d7321094901613695f" and "d99f5ed4a40335b153dab24d6069836922a39a75" have entirely different histories.

1 changed files with 2 additions and 5 deletions

View File

@ -8,16 +8,13 @@ https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
import django
from channels.routing import ProtocolTypeRouter, URLRouter
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'server.settings')
django.setup()
from django.core.asgi import get_asgi_application
from apps.utils.middlewares import TokenAuthMiddleware
import apps.ws.routing
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'server.settings')
application = ProtocolTypeRouter({
"http": get_asgi_application(),
"websocket": TokenAuthMiddleware(