mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Updated {% static %} tag examples in docs to use single quotes where appropriate.
This commit is contained in:
@@ -3471,7 +3471,7 @@ This would allow you to refer to the local file
|
||||
|
||||
.. code-block:: html+django
|
||||
|
||||
<a href="{% static "downloads/polls_20101022.tar.gz" %}">
|
||||
<a href="{% static 'downloads/polls_20101022.tar.gz' %}">
|
||||
|
||||
.. setting:: STATICFILES_STORAGE
|
||||
|
||||
|
||||
@@ -2618,7 +2618,7 @@ app is installed, the tag will serve files using ``url()`` method of the
|
||||
storage specified by :setting:`STATICFILES_STORAGE`. For example::
|
||||
|
||||
{% load static %}
|
||||
<img src="{% static "images/hi.jpg" %}" alt="Hi!">
|
||||
<img src="{% static 'images/hi.jpg' %}" alt="Hi!">
|
||||
|
||||
It is also able to consume standard context variables, e.g. assuming a
|
||||
``user_stylesheet`` variable is passed to the template::
|
||||
|
||||
Reference in New Issue
Block a user