From cf546e11ac76c8dec527e39ff8ce8249a195ab42 Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Sat, 7 Nov 2015 12:24:38 +0100 Subject: Fixed #21221 -- Made form Media and static template tag use staticfiles if installed. --- docs/intro/overview.txt | 2 +- docs/intro/tutorial06.txt | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'docs/intro') diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt index b43bf38860..94eaec136f 100644 --- a/docs/intro/overview.txt +++ b/docs/intro/overview.txt @@ -304,7 +304,7 @@ Here's what the "base.html" template, including the use of :doc:`static files .. snippet:: html+django :filename: mysite/templates/base.html - {% load staticfiles %} + {% load static %} {% block title %}{% endblock %} diff --git a/docs/intro/tutorial06.txt b/docs/intro/tutorial06.txt index de5daae467..0d3dd23315 100644 --- a/docs/intro/tutorial06.txt +++ b/docs/intro/tutorial06.txt @@ -68,13 +68,11 @@ Next, add the following at the top of ``polls/templates/polls/index.html``: .. snippet:: html+django :filename: polls/templates/polls/index.html - {% load staticfiles %} + {% load static %} -``{% load staticfiles %}`` loads the :ttag:`{% static %} ` -template tag from the ``staticfiles`` template library. The ``{% static %}`` -template tag generates the absolute URL of the static file. +The ``{% static %}`` template tag generates the absolute URL of static files. That's all you need to do for development. Reload ``http://localhost:8000/polls/`` and you should see that the question links are -- cgit v1.3