Commit da8c7890 authored by Tim Graham's avatar Tim Graham
Browse files

[1.5.X] Updated static file example in overview to use static template tag, refs #19675.

Thanks jezdez for the note.

Backport of 9e959e8d from master
parent ad692939
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -276,12 +276,13 @@ Here's what the "base.html" template, including the use of :doc:`static files

.. 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>