django-redis-sessions
Redis Session Backend For Django
What it is and what it does
django-redis-sessions is a Django session backend that stores user sessions in Redis instead of the database or cache. It integrates directly into Django's session framework by setting SESSION_ENGINE to 'redis_sessions.session', then configuring connection details via SESSION_REDIS settings. The package supports standard host/port connections, unix domain sockets, Redis Sentinel for high availability, and horizontal partitioning across multiple Redis instances via a pool configuration.
The package depends only on redis and installs as a pure Python wheel with low friction. It has been stable since its early releases but is now dormant—the last release was in January 2021 and the repository shows no recent commits. While it still receives moderate downloads and carries permissive BSD licensing, its age means you should verify it works with your current Django version and consider whether an actively maintained alternative better suits your needs.
Use it for:
- Replace Django's default database session backend with Redis for faster session reads and writes in high-traffic applications.
- Distribute sessions across multiple application servers using Redis as a shared session store.
- Implement session failover and high availability using Redis Sentinel configuration.
- Horizontally partition sessions across multiple Redis instances using the pool configuration for load distribution.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Redis-backed session storage backend for Django, replacing the default database or cache-based session engine with Redis for faster, distributed session management.
Yes, if you are on a stable Django version and need Redis-backed sessions—the package is simple, permissively licensed, and has a track record. However, verify compatibility with your Django release first, and consider whether an actively maintained alternative is available, since this package has not been updated since January 2021.
Install
django-redis-sessions on PyPI
pip
pip install django-redis-sessionsuv
uv add django-redis-sessionspoetry
poetry add django-redis-sessionsInstalling django-redis-sessions
Before you install
Low friction install with a single runtime dependency on redis. However, the package is dormant—last release was in January 2021, with no recent commits. It still carries 493 GitHub stars and sees moderate downloads, but you should verify compatibility with your Django version before adopting.
License in practice
BSD permissive license allows commercial use, modification, and redistribution with minimal restrictions—suitable for most projects.
Quickstart
pip install django-redis-sessions
# In Django settings.py:
SESSION_ENGINE = 'redis_sessions.session'
SESSION_REDIS = {
'host': 'localhost',
'port': 6379,
'db': 0,
'password': 'password',
'prefix': 'session',
'socket_timeout': 1,
'retry_on_timeout': False
}
Requires a running Redis server accessible at the configured host and port (or unix domain socket).
Verify before relying
- Compatibility with Django versions released after January 2021 (package is dormant).
- Whether redis dependency version constraints are specified or if any version works.
- Active maintenance status and whether security patches are still applied.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — redis |
| Maintenance | dormant — 2,039 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 117,928/month — #12,142 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: django_redis_sessions-0.6.2-py3-none-any.whl
Keywords: django, sessions
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
django-redisProvides a Redis cache and session backend for…
permissive · top 5,000 on PyPI
channels-redisProvides Redis-backed channel layers for Django…
permissive · top 5,000 on PyPI
pyramid-session-redisProvides server-side session storage for…
permissive · top 15,000 on PyPI
django-cache-urlConfigures Django cache backends from…
permissive · top 15,000 on PyPI
flask-redisIntegrates Redis into Flask applications as a…
unclear · top 15,000 on PyPI
django-cacheopsAutomatic and manual ORM query caching for…
permissive · top 5,000 on PyPI
Flask-SessionFlask-Session adds server-side session storage…
permissive · top 5,000 on PyPI
agent-framework-redisAdds Redis-backed persistent memory and…
permissive · top 15,000 on PyPI
django-rqDjango-RQ integrates RQ (Redis Queue) with…
permissive · top 5,000 on PyPI
redisPython client library for connecting to and…
permissive · top 1,000 on PyPI