diff options
| author | Johannes Hoppe <info@johanneshoppe.com> | 2015-11-07 12:24:38 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-12-10 14:30:19 -0500 |
| commit | cf546e11ac76c8dec527e39ff8ce8249a195ab42 (patch) | |
| tree | c86d039e94099e47382bbeaf4361fef22bbcf55e /docs/intro | |
| parent | 6be9589eb34f79914666c9d9e1e15bdb7fc44df2 (diff) | |
Fixed #21221 -- Made form Media and static template tag use staticfiles if installed.
Diffstat (limited to 'docs/intro')
| -rw-r--r-- | docs/intro/overview.txt | 2 | ||||
| -rw-r--r-- | docs/intro/tutorial06.txt | 6 |
2 files changed, 3 insertions, 5 deletions
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 %} <html> <head> <title>{% block title %}{% endblock %}</title> 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 %} <link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}" /> -``{% load staticfiles %}`` loads the :ttag:`{% static %} <staticfiles-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 |
