summaryrefslogtreecommitdiff
path: root/docs/ref/templates
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-01-17 15:58:19 -0500
committerTim Graham <timograham@gmail.com>2014-01-17 16:06:11 -0500
commitbc7668eb515b8ee7a32fbfb64dc4dff4d06abb5b (patch)
treecc606f5cc8c02bbe6633e64da1f5ff4ed1bbef14 /docs/ref/templates
parent4a5aac47a619a27c2458cfdcba56d53b05c789ad (diff)
Fixed #18942 -- Clarified usage of {% get_static_prefix %}.
Thanks Aymeric for the suggestion.
Diffstat (limited to 'docs/ref/templates')
-rw-r--r--docs/ref/templates/builtins.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index ecd39f1adc..31f6379b0d 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -2501,10 +2501,9 @@ get_static_prefix
.. highlight:: html+django
-If you're not using :class:`~django.template.RequestContext`, or if you need
-more control over exactly where and how :setting:`STATIC_URL` is injected
-into the template, you can use the :ttag:`get_static_prefix` template tag
-instead::
+You should prefer the :ttag:`static` template tag, but if you need more control
+over exactly where and how :setting:`STATIC_URL` is injected into the template,
+you can use the :ttag:`get_static_prefix` template tag::
{% load static %}
<img src="{% get_static_prefix %}images/hi.jpg" alt="Hi!" />