#28927: include tag fails silently if included template's static tag fails
-------------------------------+--------------------------------------
     Reporter:  sodds          |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.11
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Description changed by sodds:

Old 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

New description:

 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

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28927#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.41d3c5145b9ee27de07babfe6684125c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to