summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2020-11-02 12:34:24 +0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-11-02 10:35:04 +0100
commit31946faf4fb669ee182b0ee027a286eb2fa9b35c (patch)
tree1b20d08fefb97032d3154978e9bd4fe0daac8eb8 /docs
parente707a1bd9a485319421414f2d171c3faca9cd58c (diff)
[3.1.x] Updated {% static %} tag examples in docs to use single quotes where appropriate.
Backport of 42f3fafdfab01f6b04b817c45140e8309eecf84c from master
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/static-files/index.txt2
-rw-r--r--docs/intro/overview.txt2
-rw-r--r--docs/ref/settings.txt2
-rw-r--r--docs/ref/templates/builtins.txt2
4 files changed, 4 insertions, 4 deletions
diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt
index 9bdfc2fd82..001ec50d6b 100644
--- a/docs/howto/static-files/index.txt
+++ b/docs/howto/static-files/index.txt
@@ -26,7 +26,7 @@ Configuring static files
.. code-block:: html+django
{% load static %}
- <img src="{% static "my_app/example.jpg" %}" alt="My image">
+ <img src="{% static 'my_app/example.jpg' %}" alt="My image">
#. Store your static files in a folder called ``static`` in your app. For
example ``my_app/static/my_app/example.jpg``.
diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt
index fa61e4ec57..c0d528527f 100644
--- a/docs/intro/overview.txt
+++ b/docs/intro/overview.txt
@@ -307,7 +307,7 @@ Here's what the "base.html" template, including the use of :doc:`static files
<title>{% block title %}{% endblock %}</title>
</head>
<body>
- <img src="{% static "images/sitelogo.png" %}" alt="Logo">
+ <img src="{% static 'images/sitelogo.png' %}" alt="Logo">
{% block content %}{% endblock %}
</body>
</html>
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index a02dcfcf68..4a12d9de0a 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -3486,7 +3486,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
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 54258155bd..a2e1eeecc6 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -2602,7 +2602,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::