Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1531 closed defect (fixed)

Extends template reported as not existing when include file doesn't exist

Reported by: ilikeprivacy@… 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: UI/UX:


When an include file in a base template doesn't exist the base template is reported as not existing.



{% include "file_doesnt_exist" %}


{% 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/ in get_parent, line 54

Change History (2)

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(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

comment:2 Changed 12 years ago by Adrian Holovaty

milestone: Version 0.91

Milestone Version 0.91 deleted

Note: See TracTickets for help on using tickets.
Back to Top