Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django debug display all variables of a page

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

like image 476
eaman Avatar asked Feb 06 '10 17:02

eaman


People also ask

How can you display all variables in the page on to a Django template?

There's an option called 'Templates' with another option to 'Toggle context' and you can see all the variables passed to your template, as well as the ability to see the code behind the template.


1 Answers

If DEBUG is enabled, there's a template tag called {% debug %}

like image 99
Keryn Knight Avatar answered Sep 22 '22 05:09

Keryn Knight