django-redis-sessions
Redis Session Backend For Django
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Redis server accessible at the configured host and port (or unix domain socket).
- 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.
License · maintenance · safety
BSD (permissive) — BSD permissive license allows commercial use, modification, and redistribution with minimal restrictions—suitable for most projects.
last release 2021-01-13 (2039 days) · last repo commit 2023-08-30 · 493 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 117,928 downloads/mo, #12,142 on PyPI
Alternatives
Verify before relying
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
}- 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.
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 on it.
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
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.
Requires a running Redis server accessible at the configured host and port (or unix domain socket).
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
}
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 packageredis |
| 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 |
| Classifiers | Environment :: Web EnvironmentFramework :: DjangoProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules |
Evidence: django_redis_sessions-0.6.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django session backend redis”
- django-redis-sessionsProvides a Redis-backed session storage backend for Django, replacing…
- django-redisProvides a Redis cache and session backend for Django, supporting…
- django-valkeyProvides a Valkey cache and session backend for Django, allowing you…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also django-redis · channels-redis · pyramid-session-redis · django-cache-url · django-cacheops · Flask-Session · agent-framework-redis · django-rq · redis · aiohttp-session