Opened 7 years ago

Last modified 7 years ago

#28927 closed Uncategorized

include tag fails silently if included template's static tag fails — at Version 1

Reported by: sodds Owned by: nobody
Component: Uncategorized Version: 1.11
Severity: Normal 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 (last modified by sodds)

This bug happens under the following conditions:

  1. Static files storage is ManifestStaticFilesStorage
  2. Debug setting is False
  3. Parent template includes child template with {% include 'child.html' %} tag
  4. Child template uses {% load static %} at the top and uses {% static 'missingfile.css' %}
  5. Referenced static file does not exists (or is missing from .json manifest)

The actual result is that the parent template renders fine but the child template does not get included

The expected result is an error, e.g. a status code 500

Change History (1)

comment:1 by sodds, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top