Django海峡Daphne uvicorn

Django海峡Daphne uvicorn,django,django-channels,daphne,uvicorn,Django,Django Channels,Daphne,Uvicorn,我为练习写了Django频道 用达芙妮 达芙妮项目。asgi:应用程序 一切正常 使用uvicorn uvicorn项目。asgi:application 页面上的错误 (index):16 WebSocket connection to'ws://127.0.0.1:8000/ws/chat/123/' failed: Error during WebSocket handshake: Unexpected response code: 400 (index):16 WebSocket co

我为练习写了Django频道

用达芙妮

达芙妮项目。asgi:应用程序

一切正常

使用uvicorn

uvicorn项目。asgi:application

页面上的错误

(index):16 WebSocket connection to'ws://127.0.0.1:8000/ws/chat/123/' failed: Error during WebSocket handshake: Unexpected response code: 400
(index):16 WebSocket connection to'ws://127.0.0.1:8000/ws/chat/123/' failed: Error during WebSocket handshake: Unexpected response code: 400
我不知道我哪里出错了

我遵守官方规定

python-m pip安装uvicorn gunicorn

gunicorn项目.asgi:application-k uvicorn.workers.UvicornWorker

页面上的错误

(index):16 WebSocket connection to'ws://127.0.0.1:8000/ws/chat/123/' failed: Error during WebSocket handshake: Unexpected response code: 400
(index):16 WebSocket connection to'ws://127.0.0.1:8000/ws/chat/123/' failed: Error during WebSocket handshake: Unexpected response code: 400
请在我需要改进的地方帮助我,谢谢