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?
Use Django debug toolbar and make sure settings.py has:
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TEMPLATE_CONTEXT': True,
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With