Update README.rst#388
Open
kofnet002 wants to merge 1 commit into
Open
Conversation
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,
}]
}
}
}```
Member
There was a problem hiding this comment.
These are the same package.
https://pypi.org/project/channels-redis/
Here's the PEP:
The name should be lowercased with all runs of the characters ., -, or _ replaced with a single - character.
Author
|
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
<#388 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3HFQVFUDORG4A5LVI7GXKDZAOLNRAVCNFSM6AAAAABHFQQY4GVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAMZYGI2DMNJVHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 installchannels_redisfor it to work. And use your configuration as below: