diff options
| author | Tim Graham <timograham@gmail.com> | 2014-07-03 09:20:03 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-07-03 09:21:20 -0400 |
| commit | 814bcc33951db8a469b9bba26fb021fc2d8ad480 (patch) | |
| tree | 75a4f730729f05180bcb5cdac44e946953de5742 /docs | |
| parent | 9bc2d766a0c31701a4c0e20a8b04164bb22cf6d5 (diff) | |
Fixed #22924 -- Added a note about MEDIA_URL in templates.
Thanks raphael.herouart at gmail.com
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/settings.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 5b51e45cc9..968c315e0c 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1713,6 +1713,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:: |
