Skip to content
Snippets Groups Projects
Verified Commit 68f3cbbb authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Allow further configuration of django-cachalot

parent c83cb6b1
No related branches found
No related tags found
1 merge request!379Resolve "Test django-cachalot"
Pipeline #4337 passed
...@@ -206,8 +206,10 @@ if _settings.get("caching.memcached.enabled", False): ...@@ -206,8 +206,10 @@ if _settings.get("caching.memcached.enabled", False):
"LOCATION": _settings.get("caching.memcached.address", "127.0.0.1:11211"), "LOCATION": _settings.get("caching.memcached.address", "127.0.0.1:11211"),
} }
} }
INSTALLED_APPS.append("cachalot") if _settings.get("caching.cachalot.enabled", True):
DEBUG_TOOLBAR_PANELS.append("cachalot.panels.CachalotPanel") INSTALLED_APPS.append("cachalot")
DEBUG_TOOLBAR_PANELS.append("cachalot.panels.CachalotPanel")
CACHALOT_TIMEOUT = _settings.get("caching.cachalot.timeout", None)
# Password validation # Password validation
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators # https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment