我已经遵循了频道教程,但是在运行这些错误抛出时
包的版本是
频道==2.1.2Django==2.0.4
我错过了什么?
在settings.py中INSTALLED_APPS = [
"channels"
....
]
ROOT_URLCONF = 'myapp.urls'
ASGI_APPLICATION = "myapp.routing.application"
添加了文件mayapp/routing.pyfrom channels.routing import ProtocolTypeRouter
application = ProtocolTypeRouter({
# Empty for now (http->django views is added by default)
})
这是错误日志System check identified no issues (0 silenced).
August 01, 2018 - 13:11:42
Django version 2.0.4, using settings 'myapp.local_settings'
Starting ASGI/Channels version 2.1.2 development server at http://127.0.0.1:8080/
Quit the server with CONTROL-C.
Unhandled exception in thread started by .wrapper at 0x7f71ecfb6400>
Traceback (most re