2016-12-26 58 views
0

我试图Django的通道例如从https://blog.heroku.com/in_deep_with_django_channels_the_future_of_real_time_apps_in_django但是当我运行命令达芙妮chat.asgi它抛出错误:channel_layer --port 8888导入错误:没有名为模块“asgiref .base_layer'。我已经安装了为此需要example.Below所有包是我requirements.txt文件导入错误:没有模块名为“asgiref.base_layer”

asgi-redis==0.13.1 
asgiref==0.9 
autobahn==0.12.1 
channels==0.16.1 
daphne==0.9.1 
dj-database-url==0.4.0 
Django==1.9.7 
haikunator==1.0.1 
msgpack-python==0.4.7 
psycopg2==2.6.1 
redis==2.10.5 
six==1.10.0 
Twisted==16.2.0 
txaio==2.2.1 
wheel==0.24.0 
zope.interface==4.1.3 

我使用Redis的服务器3.2.6和3.5.2蟒

回答

2

你有一个新版本channels安装比article uses,但旧版本asgiref。尝试更新到最新版本asgiref==1.0.0来解决我们的问题。

相关问题