From caf574ff59ab5a083499c619414f3ccc4a6a9bbe Mon Sep 17 00:00:00 2001 From: Erik Harding Date: Mon, 13 May 2024 09:47:40 +0200 Subject: [PATCH] Use redis_url setting --- rp_yal/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rp_yal/utils.py b/rp_yal/utils.py index 67c1a0a..9ad1b75 100644 --- a/rp_yal/utils.py +++ b/rp_yal/utils.py @@ -3,8 +3,9 @@ import redis import requests +from django.conf import settings -redis_conn = redis.StrictRedis(decode_responses=True) +redis_conn = redis.from_url(settings.REDIS_URL, decode_responses=True) def get_ordered_content_set(org, fields):