2016-12-26 19 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來解決我們的問題。

相關問題