#28314 closed Bug (invalid)
Quote error in static tag documentation
Reported by: | Christian González | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | 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: | yes | UI/UX: | no |
Description
On https://docs.djangoproject.com/en/dev/howto/static-files/, "Configuring static files", 3. in the example, there is a template line:
<img src="{% static "my_app/example.jpg" %}" alt="My image"/>
This is not working, as the " are set wrong. What would work is using single quotes for the inner string:
<img src="{% static 'my_app/example.jpg' %}" alt="My image"/>
Change History (2)
comment:1 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Summary: | Quote error in documentation → Quote error in static tag documentation |
comment:2 by , 8 years ago
Sorry, yes, you are right, the error I got was because of another problem (my own) and had nothing to do with this here. Everything is fine, sorry for the spam ;-)
Note:
See TracTickets
for help on using tickets.
This works fine as far as I know. What error do you get?