websocket 导入包bug

pull/79/head
李强 2022-11-17 00:05:24 +08:00
parent 170ddfc3fc
commit 149d8830c8
1 changed files with 1 additions and 3 deletions

View File

@ -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'])
# raise Exception("未知的scope类型,"+ scope['type'])