Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDavid Durst
784 PointsHow do you know which templates a given form in admin uses?
In this video it discusses copying over the contents of a few templates into a custom template, however, it is not detailed how a developer would effectively discover which templates are being used for any given admin page.
Is there some easy steps which one could use? Or is it simply a matter of digging through the Django source?
1 Answer
Greg Kaleka
39,021 PointsHi David,
You can certainly dig through the source code, but the easiest way to do this is using django-debug-toolbar
.
If you aren't familiar with this don't worry - you'll learn about it soon (I can't remember where in the Learn Django track they introduce it). The toolbar includes a panel with the template that was used.
Cheers
-Greg