#18225: Staticfiles template tag does not fail silently -------------------------------------+------------------------------------ Reporter: bouke | Owner: moritzs Type: Bug | Status: closed Component: contrib.staticfiles | Version: 1.4 Severity: Normal | Resolution: wontfix Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------ Changes (by jezdez):
* status: assigned => closed * resolution: => wontfix Comment: First of all, please don't accept your own tickets, we have a community of ticket triagers that didn't have a chance to see this ticket since you didn't leave it at the Unreviewed state. Secondly, I'm sorry but this isn't Django's fault, if you're missing a file, it's good to raise an exception. You quoted a part of the documentation of how to write the render method of custom template tags, not how template tags should work in general. It is an error to refer to a file with the staticfiles' static template tag as it uses a storage backend to calculate the URL of the static files. If you just want to generate a URL that is concatenated with STATIC_URL, use the core static template tag: https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#std :templatetag-static -- Ticket URL: <https://code.djangoproject.com/ticket/18225#comment:4> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.