--- id: django-redis-sessions version: "0.6.2" license: BSD license_treatment: permissive maintenance: dormant --- # django-redis-sessions — Redis Session Backend For Django License: permissive · Maintenance: dormant · Downloads: 117.9K/mo ## 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 above — 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 pip install django-redis-sessions uv add django-redis-sessions poetry add django-redis-sessions ## Installing 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: unspecified - Install friction: low - Maintenance: dormant - Downloads: 117.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django session backend redis, redis sessions django, django session storage, distributed session management, redis session engine, session-storage, redis-backend [View on SkillFed](https://skillfed.io/packages/django-redis-sessions) · [View on PyPI](https://pypi.org/project/django-redis-sessions/)