Django

Code

Ticket #2298 (closed: duplicate)

Opened 4 years ago

Last modified 2 years ago

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

Reported by: Tyson Tate <tyson@fallingbullets.com> Assigned to: nobody
Milestone: Component: Template system
Version: Keywords:
Cc: tyson@fallingbullets.com Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

02/27/07 15:20:12 changed by Gary Wilson <gary.wilson@gmail.com>

  • stage changed from Unreviewed to Accepted.

Well, all template filters and tags should fail silently.

09/16/07 08:03:39 changed by ubernostrum

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

09/16/07 11:08:47 changed by ubernostrum

  • status changed from new to closed.
  • resolution set to duplicate.

Add/Change #2298 (Custom template tag files with errors aren't reported as such.)




Change Properties
Action