mirror of https://github.com/django/django.git
Updated static file example in overview to use static template tag, refs #19675.
Thanks jezdez for the note.
This commit is contained in:
parent
f49e9a517f
commit
9e959e8d58
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue