我正在学习Django-channels概念,而我在install the asgi_redis and the redis server之后陷入困境。如果我为内存中后端配置了CHANNEL_LAYERS。服务器运行正常,并显示网页。
但是,如果在为支持 redis 配置CHANNEL_LAYERS后运行服务器,则不会显示网页,并且终端中出现错误:
Channel layer default (asgi_redis.core.RedisChannelLayer)
Quit the server with CONTROL-C.
2017-09-11 12:34:07,259 - INFO - worker - Listening on channels http.request, websocket.connect, websocket.disconnect, websocket.receive
2017-09-11 12:34:07,260 - INFO - worker - Listening on channels http.request, websocket.connect, websocket.disconnect, websocket.receive
2017-09-11 12:34:07,261 - INFO - worker - Listening on channels http.request, websocket.connect, websocket.disconnect, websocket.receive
2017-09-11 12:34:07,263 - INFO - server - HTTP/2 support not enabled (install the http2 and tls Twisted extras)
2017-09-11 12:34:07,263 - INFO - server - Using busy-loop synchronous mode on channel layer
2017-09-11 12:34:07,265 - INFO - server - Listening on endpoint tcp:port=8000:interface=127.0.0.1
2017-09-11 12:34:07,267 - ERROR - server - Error trying to receive messages: unknown command 'EVALSHA'
2017-09-11 12:34:07,268 - INFO - worker - Listening on channels http.request, websocket.connect, websocket.disconnect, websocket.receive
2017-09-11 12:34:12,270 - ERROR - server - Error trying to receive messages: unknown command 'EVALSHA'
2017-09-11 12:34:17,272 - ERROR - server - Error trying to receive messages: unknown command 'EVALSHA'
我在virtualenv中安装了 asgi_redis ,并且还安装了Redis服务器。我在这做错了什么?
以下是我使用的有用版本: