From 0d416db991bb3ee6d40507fcd3fb57d6db0a25a2 Mon Sep 17 00:00:00 2001 From: johny Date: Fri, 13 Mar 2026 19:09:55 +0530 Subject: [PATCH] [FIX] Add missing SentinelConnectionFactory for Django Redis Sentinel cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR #1854 added CONNECTION_POOL_CLASS but missed CONNECTION_FACTORY, causing the default ConnectionFactory to create SentinelConnectionPool via from_url() without the required service_name and sentinel_manager arguments — crashing migrations at import time. Co-Authored-By: Claude Opus 4.6 --- backend/backend/settings/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/backend/settings/base.py b/backend/backend/settings/base.py index 8d0c1fd3aa..a06d63df27 100644 --- a/backend/backend/settings/base.py +++ b/backend/backend/settings/base.py @@ -478,6 +478,7 @@ def filter(self, record): "OPTIONS": { "CLIENT_CLASS": "django_redis.client.SentinelClient", "CONNECTION_POOL_CLASS": "redis.sentinel.SentinelConnectionPool", + "CONNECTION_FACTORY": "django_redis.pool.SentinelConnectionFactory", "SENTINELS": [(REDIS_HOST, int(REDIS_PORT))], "SENTINEL_KWARGS": _sentinel_kwargs, "DB": int(_redis_db),