From 3ebf6e844e9d08d577cdbc11f0a6059567302768 Mon Sep 17 00:00:00 2001 From: Kofi Frimpong <114186324+kofnet002@users.noreply.github.com> Date: Fri, 3 May 2024 13:18:07 +0000 Subject: [PATCH] Update README.rst 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 work. And use your configuration as below: ```CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.pubsub.RedisPubSubChannelLayer", "CONFIG": { "hosts":[{ "address": "rediss://:your_redis_url", # "REDIS_TLS_URL" "ssl_cert_reqs": None, }] } } }``` --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 2fa5626..9a2c5fb 100644 --- a/README.rst +++ b/README.rst @@ -28,7 +28,7 @@ Installation .. code-block:: - pip install channels-redis + pip install channels_redis **Note:** Prior versions of this package were called ``asgi_redis`` and are still available under PyPI as that name if you need them for Channels 1.x projects.