Sunday, January 29, 2012

Re: Displaying template location in html

Use the Django Debug Toolbar, it shows all kinds of things. For
templates, it shows the names of all the templates that make up the
given page as well as which tags are used on the page.

With DDT, you don't have to annotate (and un-annotate) anything.

http://pypi.python.org/pypi/django-debug-toolbar

On Jan 28, 10:26 pm, Alec Taylor <alec.tayl...@gmail.com> wrote:
> With 40+ HTML files it's easy to get confused as to where each
> component comes from.
>
> I don't want to annotate each file with its relative path manually, as
> this will prove cumbersome when the site finally goes production.
>
> Is there a trick to displaying the template location on-screen?
>
> Thanks for all suggestions,
>
> Alec Taylor

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment