Browse files

Updated static file example in overview to use static template tag, r…

…efs #19675.

Thanks jezdez for the note.
  • Loading branch information...
1 parent f49e9a5 commit 9e959e8d588d20988522200ad205e335e681c168 @timgraham timgraham committed Feb 23, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/intro/overview.txt
5 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 %}
<title>{% block title %}{% endblock %}</title>
- <img src="{{ STATIC_URL }}images/sitelogo.png" alt="Logo" />
+ <img src="{% static "images/sitelogo.png" %}" alt="Logo" />
{% block content %}{% endblock %}

0 comments on commit 9e959e8

Please sign in to comment.