[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
This commit is contained in:
Tim Graham 2013-02-23 10:35:22 -05:00
parent ad69293958
commit da8c789082
1 changed files with 3 additions and 2 deletions

View File

@ -276,12 +276,13 @@ Here's what the "base.html" template, including the use of :doc:`static files
.. code-block:: html+django .. code-block:: html+django
{% load static %}
<html> <html>
<head> <head>
<title>{% block title %}{% endblock %}</title> <title>{% block title %}{% endblock %}</title>
</head> </head>
<body> <body>
<img src="{{ STATIC_URL }}images/sitelogo.png" alt="Logo" /> <img src="{% static "images/sitelogo.png" %}" alt="Logo" />
{% block content %}{% endblock %} {% block content %}{% endblock %}
</body> </body>
</html> </html>