Django development server showing Error 61 Connection Refused with Redis
<p>I am trying to follow the tutorial on read the docs for Django Channels. In the <code>settings.py</code> file I am trying to change the inmemory BACKEND to the redis backend with the following code:</p>

<pre><code>CHANNEL_LAYERS = {
    "default": {
        "BACKEND": "asgi_redis.RedisChannelLayer",
        "CONFIG": {
            "hosts": [("localhost", 6379)],
        },
        "ROUTING": "chan.routing.channel_routing",
    },
}
</code></pre>

<p>However, the moment I do this, the console which is running the <code>runserver</code> command shows the following error:</p>

<pre><code>ConnectionError: Error 61 connecting to localhost:6379. Connection refused.
</code></pre>

<p>How can I fix this?</p>