Chat advance
This commit is contained in:
@ -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
|
||||
)
|
||||
)
|
||||
})
|
||||
|
Reference in New Issue
Block a user