channel 什么是channel?
channel是第三方工具包,对于不支持websocket协议的框架可以借助此包实现websocket
安装 终端安装:pip3 install channel
pycharm安装:Project Interprete 搜索 “channel”即可
配置 1、配置 setting.pyINSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'app01.apps.App01Config', 'channels', ]