From f8f11410b18d11c016ca7d3f688345f6772f2028 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 28 Sep 2021 17:49:28 +0200 Subject: [PATCH] Requirement: ping django-redis-cache to git tag For some reason django-redis-cache==2.1.3 breaks with: @get_client(write=True) def get_or_set(self, client, key, func, timeout=DEFAULT_TIMEOUT): if not callable(func): raise Exception("Must pass in a callable") Looks like an older version gets installed somehow that does not contains the code we need. So, we force it to be pinned to a git tag. --- requirements/deploy.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/requirements/deploy.txt b/requirements/deploy.txt index e4588818bbf..14817394afd 100644 --- a/requirements/deploy.txt +++ b/requirements/deploy.txt @@ -10,7 +10,16 @@ gunicorn==20.1.0 # Version 3.0.0 drops support for Django < 3.0 # https://github.com/sebleier/django-redis-cache/#300 -django-redis-cache==2.1.3 # pyup: ignore +# django-redis-cache==2.1.3 # pyup: ignore +# For some reason 2.1.3 breaks with: +# +# @get_client(write=True) +# def get_or_set(self, client, key, func, timeout=DEFAULT_TIMEOUT): +# if not callable(func): +# raise Exception("Must pass in a callable") +# +# Looks like an older version gets installed somehow +git+https://github.com/sebleier/django-redis-cache.git@2.1.3#egg=django-redis-cache #For resizing images pillow==8.3.2