[Django]-Django Debug Toolbar shows at root URL, but not in app URL

4đź‘Ť

My solution to this problem was to add <body></body> tags to the template.

I got it from the “Tips” section on django-debug-toolbar site.

The Debug Toolbar will only display when DEBUG = True in your project’s settings. It will also only display if the mimetype of the response is either text/html or application/xhtml+xml and contains a closing </body> tag.

Source: django-debug-toolbar.readthedocs.io/en/stable/tips.html

If the toolbar works on index page (or any other) but not on another, missing body tags are probably the reason.

Leave a comment