Skip to content

Commit e1f2744

Browse files
fix debug toolbar from showing on every HTMX boosted navigation (#231)
1 parent cd1f3aa commit e1f2744

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
2020
### Changed
2121

2222
- Added `custom_html = "c-\\w+"` to the `djlint` config, to support the HTML tags produced from our custom [Django Cotton](https://django-cotton.com) components.
23+
- Set both `SHOW_COLLAPSED` and `UPDATE_ON_FETCH` to `True` in the `django-debug-toolbar` config, to prevent the toolbar from showing on all navigation and to make sure it's updated on HTMX fetch requests.
2324

2425
## [2024.34]
2526

src/django_twc_project/{{ module_name }}/settings.py.jinja

+2
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ SOCIALACCOUNT_PROVIDERS = {
386386
# django-debug-toolbar
387387
DEBUG_TOOLBAR_CONFIG = {
388388
"ROOT_TAG_EXTRA_ATTRS": "hx-preserve",
389+
"SHOW_COLLAPSED": True,
390+
"UPDATE_ON_FETCH": True,
389391
}
390392

391393
# django-q2

0 commit comments

Comments
 (0)