Skip to content

Commit

Permalink
🎨 update docker.py file to use same cache backends as develop to solv…
Browse files Browse the repository at this point in the history
…e collectstatic issues
  • Loading branch information
bart-maykin committed Mar 29, 2024
1 parent 6d9ea8f commit a5e06ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sdg/conf/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
}

0 comments on commit a5e06ca

Please sign in to comment.