summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-07-03 09:20:03 -0400
committerTim Graham <timograham@gmail.com>2014-07-03 09:38:59 -0400
commit890a2d632e173edfd2b70854b72dfbd0e1a2d92b (patch)
treee3853484bcf0bf2bbc380e0c30ffdaac8a54ffc7 /docs/ref
parent9207442fe220dfc89dd7529fd7db93c30e26812d (diff)
[1.6.x] Fixed #22924 -- Added a note about MEDIA_URL in templates.
Thanks raphael.herouart at gmail.com Backport of 814bcc3395 from master
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/settings.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 0a2bd7ef57..5b477fc525 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -1440,6 +1440,11 @@ for :doc:`managing stored files </topics/files>`. It must end in a slash if set
to a non-empty value. You will need to :ref:`configure these files to be served
<serving-uploaded-files-in-development>` in both development and production.
+In order to use ``{{ MEDIA_URL }}`` in your templates, you must have
+``'django.core.context_processors.media'`` in your
+:setting:`TEMPLATE_CONTEXT_PROCESSORS`. It's there by default, but be sure
+to include it if you override that setting and want this behavior.
+
Example: ``"http://media.example.com/"``
.. warning::