1👍
✅
I believe that source
attribute of the TemplateSyntaxError
is what you are looking for. Django code implies that the mentioned numbers are line numbers between which an error occured, see https://github.com/django/django/blob/1.3.7/django/views/debug.py#L153.
As for TemplateDoesNotExist
, it seems to be ignored, when it occurs as a result of the template tag, see https://github.com/django/django/blob/1.3.7/django/template/loader.py#L50.
Source:stackexchange.com