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

Add and configure django-cachalot

parent b0ffe11b
No related branches found
No related tags found
1 merge request!379Resolve "Test django-cachalot"
Pipeline #4155 passed
......@@ -45,6 +45,23 @@ DEBUG_TOOLBAR_CONFIG = {
"SHOW_TOOLBAR_CALLBACK": "aleksis.core.util.core_helpers.dt_show_toolbar",
}
DEBUG_TOOLBAR_PANELS = [
"debug_toolbar.panels.versions.VersionsPanel",
"debug_toolbar.panels.timer.TimerPanel",
"debug_toolbar.panels.settings.SettingsPanel",
"debug_toolbar.panels.headers.HeadersPanel",
"debug_toolbar.panels.request.RequestPanel",
"debug_toolbar.panels.sql.SQLPanel",
"debug_toolbar.panels.cache.CachePanel",
"debug_toolbar.panels.staticfiles.StaticFilesPanel",
"debug_toolbar.panels.templates.TemplatesPanel",
"debug_toolbar.panels.signals.SignalsPanel",
"debug_toolbar.panels.logging.LoggingPanel",
"debug_toolbar.panels.redirects.RedirectsPanel",
"debug_toolbar.panels.profiling.ProfilingPanel",
]
ALLOWED_HOSTS = _settings.get("http.allowed_hosts", [])
# Application definition
......@@ -185,6 +202,8 @@ if _settings.get("caching.memcached.enabled", False):
"LOCATION": _settings.get("caching.memcached.address", "127.0.0.1:11211"),
}
}
INSTALLED_APPS.append("cachalot")
DEBUG_TOOLBAR_PANELS.append("cachalot.panels.CachalotPanel")
# Password validation
# https://docs.djangoproject.com/en/2.1/ref/settings/#auth-password-validators
......
This diff is collapsed.
......@@ -87,6 +87,7 @@ django-favicon-plus-reloaded = "^1.0.4"
django-health-check = "^3.12.1"
psutil = "^5.7.0"
celery-progress = "^0.0.12"
django-cachalot = "^2.3.2"
[tool.poetry.extras]
ldap = ["django-auth-ldap"]
......
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