We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be great to have support for channel layer configuration in django-environ 😏 The in-memory channel layer config is pretty simple. The channel_redis config one is more interesting.
django-environ
The text was updated successfully, but these errors were encountered:
please, this is rapidly becoming extremely annoying.
Sorry, something went wrong.
That would be really nice to have. As I workaround I did it like this, but hopefully there's a better solution?
env = environ.Env( DEBUG=(bool, False), CI=(bool, False), ) if env("CI"): CHANNEL_LAYERS = { "default": {"BACKEND": "channels.layers.InMemoryChannelLayer"}, } else: CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", "CONFIG": { "hosts": [("127.0.0.1", 6379)], }, }, }
Implemented in #514. Thank you for contributing.
sergeyklay
No branches or pull requests
Would be great to have support for channel layer configuration in
django-environ
😏 The in-memory channel layer config is pretty simple. The channel_redis config one is more interesting.The text was updated successfully, but these errors were encountered: