Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#1531 closed defect (fixed)

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

Reported by: ilikeprivacy@… Owned by: adrian
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:

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 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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 8 years ago by adrian

  • milestone Version 0.91 deleted

Milestone Version 0.91 deleted

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