En mode debug, pas de cache

This commit is contained in:
Jean-Marie Favreau 2024-08-31 10:49:23 +02:00
parent 29e4d74f94
commit a515d26475

View File

@ -198,6 +198,13 @@ COMPRESS_PRECOMPILERS = (("text/x-scss", "django_libsass.SassCompiler"),)
# cache
if DEBUG:
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
else:
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.redis.RedisCache",