Skip to content

fix: register debug_toolbar in INSTALLED_APPS (dev companion to #161) - #162

Merged
saqibmanan merged 1 commit into
devfrom
fix/debug-toolbar-installed-apps-dev
Sep 11, 2026
Merged

fix: register debug_toolbar in INSTALLED_APPS (dev companion to #161)#162
saqibmanan merged 1 commit into
devfrom
fix/debug-toolbar-installed-apps-dev

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

Companion to #161 — same commit, cherry-picked onto `dev`. See #161 for full rationale.

MIDDLEWARE conditionally added debug_toolbar's middleware when DEBUG is
True, but INSTALLED_APPS never registered the app itself -- git history
shows this pairing existed before and the INSTALLED_APPS half got dropped
somewhere along this repo's messy merge/revert history.

Broke every build since (confirmed via 3 failed CI runs today, all at the
same step): the sanity-check step's `manage.py check` runs with DEBUG
defaulting to True (no DEBUG env var set), and any request/check path that
touches debug_toolbar's models crashes with "Model class
debug_toolbar.models.HistoryEntry doesn't declare an explicit app_label
and isn't in an application in INSTALLED_APPS" -- the middleware imports
the app's models without the app being registered.
@saqibmanan
saqibmanan merged commit bc6c85f into dev Sep 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant