Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create inheritance graphs/trees for Django templates

Is there any tool out there that would take a directory with a Django application, scan it for templates and draw/print/list a hierarchy of inheritance between templates?

Seeing which blocks are being overridden at every level would be an especially helpful feature in such a tool.

like image 371
Tommalla Avatar asked Oct 21 '13 13:10

Tommalla


1 Answers

Old question but FWIW there is (or was) django-template-graph that should work with Django 1.7.

It doesn't (yet) work with Django 1.8+ when the template logic changed a bit so it needs to be patched, I opened an issue for that and will probably release a fix soon.

like image 174
benebun Avatar answered Oct 09 '22 07:10

benebun