Question

Can someone point me to the code or a way that I can say print to screen which admin template is being used?

It happens many a time when I am replacing a admin template for an model that I add the template and hit the page and bham... still the same template.

Usually its a case issue or something like that... but it takes me a while if I get stumped to realise what my issue is.

Can anyone suggest an approach, be it put print statements in django code to show which template is getting resolved?

Regards

Mark

Was it helpful?

Solution

Use the django-debug-toolbar, it has a tab that shows all the template_s_ (plural) that are used.

OTHER TIPS

If you run Django's development server from the command line, you can definitely just use print statements to find out which template is being used. You can also use the FireBug plugin for Firefox to figure out what the server is sending back to you.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top