martinrusev / django-redis-sessions

Session backend for Django that stores sessions in a Redis database
BSD 3-Clause "New" or "Revised" License
494 stars 106 forks source link

Settings file broken #48

Closed dbreen closed 6 years ago

dbreen commented 6 years ago

The settings.py file is trying to pull each setting from a dict, but it's calling getattr which will not work, so it always uses the defaults.

E.g.,

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

Should be:

SESSION_REDIS_HOST = SESSION_REDIS.get('host', 'localhost')

dbreen commented 6 years ago

Thanks! That fixed it.