Support HTMX with Django Debug Toolbar

This commit is contained in:
Lukáš Kucharczyk 2023-11-21 16:59:21 +01:00
parent 0e93993498
commit c55fbe86b5
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 1 additions and 0 deletions

View File

@ -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"