From 3e4c207cfce21865a6ec8c53d30983c11551e55e Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 15 Jul 2025 19:26:14 +0800 Subject: [PATCH] debug2 --- api/asgi.py | 2 +- api/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/asgi.py b/api/asgi.py index 5875ab8..2775edf 100644 --- a/api/asgi.py +++ b/api/asgi.py @@ -19,6 +19,6 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.settings") application = ProtocolTypeRouter( { "http": get_asgi_application(), - "websocket": AuthMiddlewareStack(URLRouter(ws_urlpatterns)), + # "websocket": AuthMiddlewareStack(URLRouter(ws_urlpatterns)), } ) diff --git a/api/urls.py b/api/urls.py index 851ea47..80dbc34 100644 --- a/api/urls.py +++ b/api/urls.py @@ -38,5 +38,5 @@ apis = [ urlpatterns = apis + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ws_urlpatterns = [ - # path("ws/", Consumer.as_asgi()), + path("ws/", Consumer.as_asgi()), ]