Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated static file example in overview to use static template tag, r…

…efs #19675.

Thanks jezdez for the note.
  • Loading branch information...
commit 9e959e8d588d20988522200ad205e335e681c168 1 parent f49e9a5
Tim Graham timgraham authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 docs/intro/overview.txt
5 docs/intro/overview.txt
@@ -271,17 +271,18 @@ Finally, Django uses the concept of "template inheritance": That's what the
271 271 following blocks." In short, that lets you dramatically cut down on redundancy
272 272 in templates: each template has to define only what's unique to that template.
273 273
274   -Here's what the "base.html" template, including the use of :doc:`static files
  274 +Here's what the "base.html" template, including the use of :doc:`static files
275 275 </howto/static-files>`, might look like:
276 276
277 277 .. code-block:: html+django
278 278
  279 + {% load static %}
279 280 <html>
280 281 <head>
281 282 <title>{% block title %}{% endblock %}</title>
282 283 </head>
283 284 <body>
284   - <img src="{{ STATIC_URL }}images/sitelogo.png" alt="Logo" />
  285 + <img src="{% static "images/sitelogo.png" %}" alt="Logo" />
285 286 {% block content %}{% endblock %}
286 287 </body>
287 288 </html>

0 comments on commit 9e959e8

Please sign in to comment.
Something went wrong with that request. Please try again.