Django+channels -> websocket
学习视频: https://www.bilibili.com/video/BV1J44y1p7NX/?p=10
workon # 查看虚拟环境
mkvirtualenv web -p python3.10 # 创建虚拟环境
workon web # 进入虚拟环境
pip insatll django channels
django-admin startproject ws_demo
python manage.py startapp app01
in ws_demo/setings
注册channels
添加 ASGI_APPLICATION
修改asgi.py文件
http+webscoket