Is there a template tag (or any other trick) I can use to display all the variables available in a page?
Is there a template tag (or any other trick) I can use to display all the variables available in a page?
The debug toolbar does all this and much, much more. See the screencast for more. If you literally just want the variables, you could try
assert False, locals()
in your view
If you use pycharm of professional version, you can set breakpoints on some lines in a template file and view the variable value.
For more detail, follow this link.https://www.jetbrains.com/help/pycharm/debugging-django-templates.html