mirror of https://github.com/django/django.git
[1.5.X] Fixed #19675 - Added mention of static files to overview.
Thanks Dwight Gunning for the patch.
Backport of a61dbd6219
from master
This commit is contained in:
parent
89fb1836a8
commit
ad69293958
|
@ -271,7 +271,8 @@ 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 might look like:
|
||||
Here's what the "base.html" template, including the use of :doc:`static files
|
||||
</howto/static-files>`, might look like:
|
||||
|
||||
.. code-block:: html+django
|
||||
|
||||
|
@ -280,7 +281,7 @@ Here's what the "base.html" template might look like:
|
|||
<title>{% block title %}{% endblock %}</title>
|
||||
</head>
|
||||
<body>
|
||||
<img src="sitelogo.png" alt="Logo" />
|
||||
<img src="{{ STATIC_URL }}images/sitelogo.png" alt="Logo" />
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue