diff options
| author | Tim Graham <timograham@gmail.com> | 2013-02-23 10:35:22 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-02-23 10:35:22 -0500 |
| commit | 9e959e8d588d20988522200ad205e335e681c168 (patch) | |
| tree | 12bcac2226a91b248303d1d5c88366148f36313d /docs | |
| parent | f49e9a517f2fdc1d9ed7ac841ace77636cbd6747 (diff) | |
Updated static file example in overview to use static template tag, refs #19675.
Thanks jezdez for the note.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intro/overview.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt index f04c6706fc..f80eca4b3b 100644 --- a/docs/intro/overview.txt +++ b/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 %} <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> |
