Django debug display all variables of a page

Viewed 69544

Is there a template tag (or any other trick) I can use to display all the variables available in a page?

6 Answers

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

Related