Opened 19 years ago

Closed 18 years ago

Last modified 18 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: 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

Change History (2)

comment:1 by Adrian Holovaty, 18 years ago

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 by Adrian Holovaty, 18 years ago

milestone: Version 0.91

Milestone Version 0.91 deleted

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