﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28050	TemplateSyntaxError should contain template name	Petr Dlouhý	Farhan Ali	"If there is an error in template, Django doesn't report the template name. It could be quite uneasy to find the buggy template in such case.

e.g.: I have got following error:
{{{
  File ""/home/petr/soubory/programovani/Auto-mat/DPNK/dpnk/env/lib/python3.5/site-packages/django/template/base.py"", line 509, in parse
    self.invalid_block_tag(token, command, parse_until)
  File ""/home/petr/soubory/programovani/Auto-mat/DPNK/dpnk/env/lib/python3.5/site-packages/django/template/base.py"", line 565, in invalid_block_tag
    get_text_list([""'%s'"" % p for p in parse_until], 'or'),
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 127: 'endblock', expected 'empty' or 'endthumbnail'. Did you forget to register or load this tag?

}}}
It contains even line number, but I have no idea in which file.

I think, it is not that difficult to include template name in the bug report. In my case I tried to debug the error call. In `django.template.base`, the `invalidb_block_tag` is called from `parse()` where the template name can be obtained from `self.origin.template_name`."	New feature	closed	Template system	1.11	Normal	fixed	TemplateSyntaxError template	Roger Masse Emmanuel Katchy Farhan Ali	Ready for checkin	1	0	0	0	0	0
