Chat advance

This commit is contained in:
Xamora
2023-11-27 23:31:31 +01:00
parent 8bce7d33ca
commit b12c03074a
10 changed files with 21 additions and 3 deletions

View File

@ -10,7 +10,7 @@ https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/
import os
from channels.routing import ProtocolTypeRouter, URLRouter
from channels.auth import AuthMiddlewareStack
import frontend.routing
import chat.routing
from django.core.asgi import get_asgi_application
@ -20,7 +20,7 @@ application = ProtocolTypeRouter({
'http':get_asgi_application(),
'websocket':AuthMiddlewareStack(
URLRouter(
frontend.routing.websocket_urlpatterns
chat.routing.websocket_urlpatterns
)
)
})