Opened 13 years ago
Closed 13 years ago
#17362 closed New feature (wontfix)
include with filename unquoted fails silently
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Template system | Version: | 1.3 |
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
{% include overview_views.html %}
obviously should be:
{% include "overview_views.html" %}
But if the quotes are missing, the file is not included and there is no error message.
It would be better to include the file anyway if possible, and
if that is not possible then display an error message.
Note:
See TracTickets
for help on using tickets.
Marking as wontfix. The template engine failing without an error message is a design choice -- one of the design choices of the Django template language is that it is better to show a partially rendered page than to show a page with an error.
We can't magically interpret around missing quotes, either. Unquoted, the argument means "look for a variable with this name"; quoted, it means "use this literal file name".