Django development server showing Error 61 Connection Refused with Redis -
i trying follow tutorial on read docs django channels. in settings.py
file trying change inmemory backend redis backend following code:
channel_layers = { "default": { "backend": "asgi_redis.redischannellayer", "config": { "hosts": [("localhost", 6379)], }, "routing": "chan.routing.channel_routing", }, }
however, moment this, console running runserver
command shows following error:
connectionerror: error 61 connecting localhost:6379. connection refused.
how can fix this?
please make sure if redis installed on system , running. check if redis running use
redis-cli
then take redis console, if type ping
return pong
if redis running or not.
if don't have redis in system, please visit redis quick start.
for mac os x: go terminal , type brew install redis
.
Comments
Post a Comment