tags:

views:

75

answers:

1

How can I print or iterate over all the variables available in the context from the template code?

I know about {% debug %} but it contains too much information. I'd just like to print variable names available in the current context.

Is there a way to do this without writing custom tag?

+4  A: 

Use the Django debug toolbar - gives you this on the Templates tab, along a whole range of other useful debugging information.

Daniel Roseman