13👍
Just needed to install ‘asgi_redis’. I was assuming that it would have gotten installed by default while installing Django-Channels, but it doesn’t. ‘asgiref’ gets installed by default and not ‘asgi_redis’. So to solve this issue, one can just run:
> sudo pip install asgi_redis
- Using Django's built in web server in a production environment
- Is there a way to combine behavior of SESSION_EXPIRE_AT_BROWSER_CLOSE and SESSION_COOKIE_AGE
- Django.core.exceptions.ImproperlyConfigured
7👍
I also faced same problem while working with django-channels, by following the documentation examples https://channels.readthedocs.io/en/latest/tutorial/index.html
you just need to install channels-redis as
pip install channels-redis
to resolve this issue.
6👍
With asgiref-2.3.2 and maybe more, you need to install channel_redis.
NOT asgi_redis.
pip install channel_redis
- Django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'auth.User' that has not been installed
- Pass JSON to JS using Django render
- Libmysqlclient.18.dylib image not found when using MySQL from Django on OS X
- How can I create a case-insensitive database index in Django?
- What is Serializers to_internal_value method used for in Django
3👍
Faced the similar issue. Solved it by installing channels_redis:
pip install channels_redis
Also using channel redis in setting too:
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels_redis.core.RedisChannelLayer',
'CONFIG': {
'hosts': [('localhost', 6379)],
},
},
'ROUTING': 'ws.routing.application',
}
1👍
That did the thing for me.
daphne = "~=3.0.2"
channels = "~=3.0.4"
channels-redis = "~=3.3.1"
async-timeout = "~=3.0.1"
- How to execute external script in the Django environment
- How to automatically get user's timezone from client in Django?
0👍
In my case asgiref version 2.3.2 was not compatible. I downgraded it as follows and then my code worked.
pip install asgiref==1.0.0
0👍
I know this is an old post, however, I got the same problem and I got the solution from this link:
https://github.com/django/channels_redis/issues/113#issuecomment-405071710
based on Andrewgodwin he says:
"asgi-redis is an outdated package (the previous version of channels_redis). You can uninstall it to solve this error."
and that worked for me
- Run simultaneously UWSGI and ASGI with Django
- Django admin add custom filter
- PyCharm does not resolve templates nor template tags nor statics in Django project
- (gcloud.app.deploy) Error Response: [7] Access Not Configured. Cloud Build has not been used in project