websocket 导入包bug
parent
170ddfc3fc
commit
149d8830c8
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue