django-redis-sessions icon indicating copy to clipboard operation
django-redis-sessions copied to clipboard

dict and getattr o_O

Open liminspace opened this issue 7 years ago • 3 comments

SESSION_REDIS must be a dict. But in settings.py is written:

getattr(SESSION_REDIS, 'host', 'localhost')

This VERY BIG MISTAKE is a joke?

I see this bug was fixed but it hasn't released yet.

liminspace avatar Sep 23 '17 09:09 liminspace

@liminspace That is not the best way to phrase your request for a release.

I do hope it ends up pypi soonish as well though.

rhoog avatar Sep 27 '17 14:09 rhoog

@rhoog will be in pypi soon enough. Wanted to test it for a week or two from git master

martinrusev avatar Sep 27 '17 18:09 martinrusev

As result I've moved to django-redis using django.contrib.sessions.backends.cache as SESSION_ENGINE. It works very good and has more functionality.

liminspace avatar Sep 28 '17 17:09 liminspace