skillfed

django-redis-sessions

Redis Session Backend For Django

django-redis-sessions v0.6.2 117.9K downloads/30d#12,142 on PyPI493
Permissive license BSD DORMANT released

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-sessions

uv

uv add django-redis-sessions

poetry

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 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

Environment :: Web EnvironmentFramework :: DjangoProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development :: Libraries :: Python Modules

Tags

django session backend redisredis sessions djangodjango session storagedistributed session managementredis session engine
session-storageredis-backend

More Python Modules packages