summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-02-23 10:35:22 -0500
committerTim Graham <timograham@gmail.com>2013-02-23 10:37:29 -0500
commitda8c7890824664e0219988ce4c41c103fceb575d (patch)
tree85b3835752feeb6f81dff1da9c348b8c135b0a23
parentad69293958226ef4c1355628d944a2692cca820f (diff)
[1.5.X] Updated static file example in overview to use static template tag, refs #19675.
Thanks jezdez for the note. Backport of 9e959e8d58 from master
-rw-r--r--docs/intro/overview.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt
index f04c6706fc..f80eca4b3b 100644
--- a/docs/intro/overview.txt
+++ b/docs/intro/overview.txt
@@ -271,17 +271,18 @@ Finally, Django uses the concept of "template inheritance": That's what the
following blocks." In short, that lets you dramatically cut down on redundancy
in templates: each template has to define only what's unique to that template.
-Here's what the "base.html" template, including the use of :doc:`static files
+Here's what the "base.html" template, including the use of :doc:`static files
</howto/static-files>`, might look like:
.. code-block:: html+django
+ {% load static %}
<html>
<head>
<title>{% block title %}{% endblock %}</title>
</head>
<body>
- <img src="{{ STATIC_URL }}images/sitelogo.png" alt="Logo" />
+ <img src="{% static "images/sitelogo.png" %}" alt="Logo" />
{% block content %}{% endblock %}
</body>
</html>