django 3.2
channels 3.0.5
出现报错: channels.exceptions.InvalidChannelLayerError: BACKEND is unconfigured or doesn't support groups
在 settings.py 配置 BACKEND
# 设置通道层的通信后台 - 本地测试用
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels.layers.InMemoryChannelLayer"
}
}