From a5e06caf6388cdf5a1577859226bdf92be260508 Mon Sep 17 00:00:00 2001 From: bart-maykin Date: Fri, 29 Mar 2024 11:47:16 +0100 Subject: [PATCH] :art: update docker.py file to use same cache backends as develop to solve collectstatic issues --- src/sdg/conf/docker.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sdg/conf/docker.py b/src/sdg/conf/docker.py index fd1722b61..085ece1b1 100644 --- a/src/sdg/conf/docker.py +++ b/src/sdg/conf/docker.py @@ -12,4 +12,11 @@ # used to verify if a redirect is safe or not (open redirect vulnerabilities etc.) os.environ.setdefault("ALLOWED_HOSTS", "*") -from .production import * # noqa isort:skip +from .base import * # noqa isort:skip + +# in memory cache and django-axes don't get along. +# https://django-axes.readthedocs.io/en/latest/configuration.html#known-configuration-problems +CACHES = { + "default": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"}, + "axes": {"BACKEND": "django.core.cache.backends.dummy.DummyCache"}, +}