From c55fbe86b594be18ecb87dd01e69eaf99e1e917d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 21 Nov 2023 16:59:21 +0100 Subject: [PATCH] Support HTMX with Django Debug Toolbar --- timetracker/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/timetracker/settings.py b/timetracker/settings.py index 725f855..7238b9b 100644 --- a/timetracker/settings.py +++ b/timetracker/settings.py @@ -58,6 +58,7 @@ MIDDLEWARE = [ if DEBUG: MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware") INTERNAL_IPS = ["127.0.0.1"] + DEBUG_TOOLBAR_CONFIG = {"ROOT_TAG_EXTRA_ATTRS": "hx-preserve"} ROOT_URLCONF = "timetracker.urls"