Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#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 Tim Graham, 8 years ago

Resolution: invalid
Status: newclosed
Summary: Quote error in documentationQuote error in static tag documentation

This works fine as far as I know. What error do you get?

comment:2 by Christian González, 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.
Back to Top