From 149d8830c88293f435c7865b2258d215129352ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BC=BA?= <1206709430@qq.com> Date: Thu, 17 Nov 2022 00:05:24 +0800 Subject: [PATCH] =?UTF-8?q?websocket=20=E5=AF=BC=E5=85=A5=E5=8C=85bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/application/asgi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/application/asgi.py b/backend/application/asgi.py index 96d776b..ba0b3fe 100644 --- a/backend/application/asgi.py +++ b/backend/application/asgi.py @@ -14,8 +14,6 @@ from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'application.settings') os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true" -from application.websocketConfig import websocket_application - http_application = get_asgi_application() # async def application(scope,receive,send): @@ -24,4 +22,4 @@ http_application = get_asgi_application() # elif scope['type'] == 'websocket': # await websocket_application(scope, receive, send) # else: -# raise Exception("未知的scope类型,"+ scope['type']) \ No newline at end of file +# raise Exception("未知的scope类型,"+ scope['type'])