Support HTMX with Django Debug Toolbar
This commit is contained in:
parent
0e93993498
commit
c55fbe86b5
|
@ -58,6 +58,7 @@ MIDDLEWARE = [
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
MIDDLEWARE.append("debug_toolbar.middleware.DebugToolbarMiddleware")
|
||||||
INTERNAL_IPS = ["127.0.0.1"]
|
INTERNAL_IPS = ["127.0.0.1"]
|
||||||
|
DEBUG_TOOLBAR_CONFIG = {"ROOT_TAG_EXTRA_ATTRS": "hx-preserve"}
|
||||||
|
|
||||||
ROOT_URLCONF = "timetracker.urls"
|
ROOT_URLCONF = "timetracker.urls"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue