views:

29

answers:

1

I'm new to django templates, and I'm trying to tweak the admin interface. Right now I'm editing tabular.html in order to control how inlines are displayed. However, I have no idea what variables are available via the context the admin app sends to this template. Is there any quick way to see all variables available?

I know it is possible to use assert False in a .py-file, is there some equivalent in a template file?

A: 

Use the Django debug toolbar - it includes a panel that shows the context of all templates used to render the current page.

Daniel Roseman
Hmm, I downloaded and installed the debug toolbar from http://github.com/dcramer/django-debug-toolbar, but I cannot seem to find the context variables. Any idea? I followed their install instructions exactly.
Kristian