Debugging (Django Debug Toolbar)
We use the Django Debug Toolbar to debug the CMS.
When DEBUG
is True
, on every HTML page a sidebar is rendered which contains
additional information about the current request, e.g. code execution times, database queries and profiling info.
When the sidebar is collapsed, you can show it by clicking on the “DJDT” button somewhere along the right edge of the screen:
In order to use this for JSON views, you have to append ?debug
to the URL, e.g.:
http://localhost:8000/api/v3/augsburg/de/pages?debug
(See JsonDebugToolbarMiddleware
for reference.)