python-django-redis
Port variant v13
Summary Redis cache backend for Django (3.13)
Package version 7.0.0
Homepage https://github.com/jazzband/django-redis
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 20 JUN 2026, 20:56:33 UTC
Port created 01 JAN 2023, 17:21:46 UTC
Subpackage Descriptions
single ============================== Redis cache backend for Django ============================== :alt: Jazzband :alt: GitHub Actions :alt: Coverage This is a [Jazzband] project. By contributing you agree to abide by the [Contributor Code of Conduct ] and follow the [guidelines ]. Introduction ------------ django-redis is a BSD licensed, full featured Redis cache and session backend for Django. Why use django-redis? ~~~~~~~~~~~~~~~~~~~~~ - Uses native redis-py url notation connection strings - Pluggable clients - Pluggable parsers - Pluggable serializers - Primary/secondary support in the default client - Comprehensive test suite - Used in production in several projects as cache and session storage - Supports infinite timeouts - Facilities for raw access to Redis client/connection pool - Highly configurable (can emulate memcached exception behavior, for example) - Unix sockets supported by default Requirements ~~~~~~~~~~~~ - `Python`_ 3.10+ - `Django`_ 5.2+ - `redis-py`_ 4.0.2+ - `Redis server`_ 2.8+ .. _Python: https://www.python.org/downloads/ .. _Django: https://www.djangoproject.com/download/ .. _redis-py: https://pypi.org/project/redis/ .. _Redis server: https://redis.io/download User guide ---------- Installation ~~~~~~~~~~~~ Install with pip: .. code-block:: console $ python -m pip install django-redis Configure as cache backend ~~~~~~~~~~~~~~~~~~~~~~~~~~ To start using django-redis, you should change your Django cache settings to something like: .. code-block:: python CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/1", } } django-redis uses the redis-py native URL notation for connection strings, it allows better interoperability and has a connection string in more "standard" way. Some examples: - ``redis://[[username]:[password]]@localhost:6379/0`` - ``rediss://[[username]:[password]]@localhost:6379/0`` - ``unix://[[username]:[password]]@/path/to/socket.sock?db=0`` Three URL schemes are supported: - ``redis://``: creates a normal TCP socket connection - ``rediss://``: creates a SSL wrapped TCP socket connection - ``unix://`` creates a Unix Domain Socket connection There are several ways to specify a database number: - A db querystring option, e.g. ``redis://localhost?db=0`` - If using the ``redis://`` scheme, the path argument of the URL, e.g. ``redis://localhost/0``
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime python313:primary:std
Runtime (only) python-Django:single:v13
python-redis:single:v13
Download groups
main mirror://PYPIWHL/7e/9f/09cdb9a1eebe8533b02a7694ca787acfc1e4d93b5b6175ff99366d4e6d64
Distribution File Information
4b23aa6e0cd0937bb1242e9a463809e6004de3ca2150f34e986306bb6220d688 38932 python-src/django_redis-7.0.0-py3-none-any.whl
Ports that require python-django-redis:v13
NetBox:std Flexible IPAM and DCIM tool with plugin support