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:
- Static files storage is ManifestStaticFilesStorage
- Parent template includes child template with {% include 'child.html' %} tag
- Child template uses {% load static %} at the top and uses {% static 'missingfile.css' %}
- 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
Note:
See TracTickets
for help on using tickets.