Jinja

Debugging Templates

Navigation

In order to keep templates debuggable you have to do some additional work on the application side. The traceback module that comes with python currently does not support the __loader__ hook which is used by Jinja to provide templates. Although the import system was implemented three Python versions ago the default traceback system still doesn't support it.

However most of the extended web development traceback module support it:

Note that the django traceback module currently does not provide this. A ticket was filed already so there is hope that this will be fixed.

To enable debugging you have to use one of those debugging systems or implement your own one with support for __loader__.