Closed dbreen closed 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.
getattr
E.g.,
SESSION_REDIS_HOST = getattr(SESSION_REDIS, 'host', 'localhost')
Should be:
SESSION_REDIS_HOST = SESSION_REDIS.get('host', 'localhost')
Thanks! That fixed it.
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')