Pip install channels Setting.py 文件中添加 ASGI_APPLICATION = "ccic_profile.routing.application" 新建一个文件夹:websocket