Plugin for django-redis that supports Redis Sentinel
pip install django-redis-sentinel
In your settings, do something like this:
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis_master/sentinel-host1.yourdomain.com:2639,sentinel-host2.yourdomain.com:2639"
"OPTIONS": {
"PASSWORD": 's3cret_passw0rd!',
"CLIENT_CLASS": "django_redis_sentinel.SentinelClient",
}
}
}