Django debug display all variables of a page
Solution 1:
If DEBUG is enabled, there's a template tag called {% debug %}
Solution 2:
There are several options (some of them already listed before):
-
django builtin debug tag - I use this boilerplate to display it properly:
<pre> {% filter force_escape %} {% debug %} {% endfilter %} </pre>
Use django template debug application's tags like attributes, variables and details or you can even set a breakpoint inside of a template where you can inspect everything with pdb debugger (or ipdb)
Django debug toolbar - has a template panel for this purpose
Usually all debug features work only when the app is in DEBUG mode.