#1531 closed defect (fixed)
Extends template reported as not existing when include file doesn't exist
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Template system | Version: | |
Severity: | minor | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When an include file in a base template doesn't exist the base template is reported as not existing.
example:
base_generic.html
............ {% include "file_doesnt_exist" %} ............
index.html
{% extends "base_generic" %} .........
Exception Type: TemplateSyntaxError Exception Value: Template 'base_generic' cannot be extended, because it doesn't exist Exception Location: /usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/template/loader_tags.py in get_parent, line 54
Note:
See TracTickets
for help on using tickets.
(In [2681]) Fixed #1531 -- Fixed eager exception catching that caused the template system to report a base template didn't exist when indeed it does exist but contains an {% include %} of a nonexisting template