jazzband / django-debug-toolbar

A configurable set of panels that display various debug information about the current request/response.
https://django-debug-toolbar.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
8.07k stars 1.05k forks source link

Injections cannot be made into the theme. #1844

Closed cnr91 closed 11 months ago

cnr91 commented 11 months ago

I bought a bootstrap theme and the toolbar does not appear where this theme is. It looks like it cannot be injected into the page. What could be the reason for this?

The toolbar appears in the admin panel and in places where the theme is not.

matthiask commented 11 months ago

The toolbar is inserted before the </body> string by default, see INSERT_BEFORE here: https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config

Maybe the theme doesn't have the expected closing body tag?

cnr91 commented 11 months ago

Yes, I did not add </body>, but when I rendered the page, the automatic body was added. The problem was solved when I added it now.

Thank you so much