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/tutorial06.txt | |
| parent | 6be9589eb34f79914666c9d9e1e15bdb7fc44df2 (diff) | |
Fixed #21221 -- Made form Media and static template tag use staticfiles if installed.
Diffstat (limited to 'docs/intro/tutorial06.txt')
| -rw-r--r-- | docs/intro/tutorial06.txt | 6 |
1 files changed, 2 insertions, 4 deletions
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 |
