Opened 7 years ago

Last modified 7 years ago

#28927 closed Uncategorized

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

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

This bug happens under the following conditions:

  1. Static files storage is ManifestStaticFilesStorage
  2. Parent template includes child template with {% include 'child.html' %} tag
  3. Child template uses {% load static %} at the top and uses {% static 'missingfile.css' %}
  4. 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 (0)

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