Opened 18 years ago

Closed 17 years ago

#2298 closed defect (duplicate)

Custom template tag files with errors aren't reported as such.

Reported by: Tyson Tate <tyson@…> Owned by: nobody
Component: Template system Version:
Severity: normal Keywords:
Cc: tyson@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If a custom template tag file (i.e. "project/apps/app/templatetags/my_tags.py") has errors, they aren't reported anywhere. The module is simply not loaded and then we get a TemplateSyntaxError when we try to do:

{% load my_tags.py %}

It would be nice if we could somehow get the error that occurred in the template tag file instead of a TemplateSyntaxError.

Change History (3)

comment:1 by Gary Wilson <gary.wilson@…>, 18 years ago

Triage Stage: UnreviewedAccepted

Well, all template filters and tags should fail silently.

comment:2 by James Bennett, 17 years ago

Closing in favor of #3349, which is apparently being actively worked on.

comment:3 by James Bennett, 17 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top