django / channels_redis

Redis channel layer backend for Django Channels
BSD 3-Clause "New" or "Revised" License
601 stars 197 forks source link

Update README.rst #388

Open kofnet002 opened 7 months ago

kofnet002 commented 7 months ago

I followed the tutorial and it was great, but I had the error below TypeError: RedisChannelLayer.__init__() got an unexpected keyword argument 'ssl_cert_reqs'.

because the CHANNELS_LAYER CONFIG was like this "BACKEND": "channels_redis.core.RedisChannelLayer"

I had to uninstall the channels redis, channels-redis, and install channels_redis for it to work. And use your configuration as below:


"default": {
    "BACKEND": "channels_redis.pubsub.RedisPubSubChannelLayer",
    "CONFIG": {
        "hosts":[{
            "address": "rediss://:your_redis_url",  # "REDIS_TLS_URL"
            "ssl_cert_reqs": None,
        }]
    }
}
}
kofnet002 commented 7 months ago

Interesting but I had to install the package “channel_redis” instead of “channel-redis” for it to work. I stand to be corrected. Thank you

On Fri, 3 May 2024 at 2:12 PM, Carlton Gibson @.***> wrote:

@.**** commented on this pull request.

These are the same package.

https://pypi.org/project/channels-redis/

— Reply to this email directly, view it on GitHub https://github.com/django/channels_redis/pull/388#pullrequestreview-2038246559, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3HFQVFUDORG4A5LVI7GXKDZAOLNRAVCNFSM6AAAAABHFQQY4GVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAMZYGI2DMNJVHE . You are receiving this because you authored the thread.Message ID: @.***>