【发布时间】:2018-03-14 16:56:49
【问题描述】:
我正在尝试根据本教程 (http://channels.readthedocs.io/en/latest/tutorial/part_2.html) 实现与 Django 和频道的聊天。我将频道和聊天应用程序添加到已安装的应用程序中。我为一个项目做了以下路由:
# mysite/routing.py
from channels.routing import ProtocolTypeRouter
application = ProtocolTypeRouter({
# (http->django views is added by default)
})
基本上,我完全按照教程中的步骤进行操作。但是在runserver 之后,我仍然收到ValueError: No application configured for scope type 'websocket',在去特定的聊天室之后。有人能帮帮我吗?
【问题讨论】:
-
您更新了设置文件?
-
是的,我完全按照教程完成了所有操作。
标签: python django django-channels