Opened 9 years ago

Closed 9 years ago

#24025 closed Uncategorized (worksforme)

improve documents — at Version 2

Reported by: Ahn Jungho Owned by: nobody
Component: Documentation Version: dev
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 (last modified by Tim Graham)

This is a line 33 of https://github.com/django/django/blob/master/docs/howto/static-files/index.txt

<img src="{% static "my_app/myexample.jpg" %}" alt="My image"/>

Double quote includes double quote. I think it is ambiguous.

How about using single quote?

<img src="{% static 'my_app/myexample.jpg' %}" alt="My image"/>


A line 346 of https://github.com/django/django/blob/master/docs/ref/contrib/staticfiles.txt has the same problem.

<img src="{% static "images/hi.jpg" %}" alt="Hi!" />

Change History (2)

comment:1 by Ahn Jungho, 9 years ago

Description: modified (diff)

comment:2 by Tim Graham, 9 years ago

Description: modified (diff)
Resolution: worksforme
Status: newclosed

The syntax is valid and many projects use it. I think it's fine.

Note: See TracTickets for help on using tickets.
Back to Top