The source project of this merge request has been removed.
Fix use of DjangoDebugToolbar
I noticed a few bugs when trying to enable the DjangoDebugToolbar.
- the first was related to a missing
debug_toolbar.middleware.DebugToolbarMiddleware
inMIDDLEWARE_CLASSES
, which is now fixed. Reading the instructions given by the maintainers of the project, I saw:
You should include the Debug Toolbar middleware as early as possible in the list.
Which justifies the insert(0, x) instead of append(x).
- the second is the error
NoReverseMatch at / 'djdt' is not a registered namespace
, which is corrected by adding a url in urlpatterns.
Edited by Guillaume Bernard