django-redis-sessions
django-redis-sessions copied to clipboard
Session backend for Django that stores sessions in a Redis database
**What** Adding all django session tests to tests all scenarios. https://github.com/django/django/blob/master/tests/sessions_tests/tests.py#L40 refactored tests to use django test runner instead of nosetests Refactored development to include docker for easy contribution. **Why**...
`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...
Does the package support Django 4.1 and 4.0?
When saving the session data: https://github.com/martinrusev/django-redis-sessions/blob/53021b211673d797009c45106d92728c536ced20/redis_sessions/session.py#L156 And loading the session data: https://github.com/martinrusev/django-redis-sessions/blob/53021b211673d797009c45106d92728c536ced20/redis_sessions/session.py#L131 It would be better to use `json.dumps()` and `json.loads()` rather than `self.encode()`/`self.decode()`. The reason is that the latter...