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

Activate cachalot if caching is activated

parent b974d1be
No related branches found
No related tags found
1 merge request!379Resolve "Test django-cachalot"
Pipeline #4504 passed
......@@ -206,10 +206,9 @@ if _settings.get("caching.memcached.enabled", False):
"LOCATION": _settings.get("caching.memcached.address", "127.0.0.1:11211"),
}
}
if _settings.get("caching.cachalot.enabled", True):
INSTALLED_APPS.append("cachalot")
DEBUG_TOOLBAR_PANELS.append("cachalot.panels.CachalotPanel")
CACHALOT_TIMEOUT = _settings.get("caching.cachalot.timeout", None)
INSTALLED_APPS.append("cachalot")
DEBUG_TOOLBAR_PANELS.append("cachalot.panels.CachalotPanel")
CACHALOT_TIMEOUT = _settings.get("caching.cachalot.timeout", None)
# Password validation
# 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