Opened 3 years ago

Closed 3 years ago

#24025 closed Uncategorized (worksforme)

improve documents

Reported by: Ahn Jungho Owned by: nobody
Component: Documentation Version: master
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 Changed 3 years ago by Ahn Jungho

Description: modified (diff)

comment:2 Changed 3 years ago by Tim Graham

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