Loading docs/ref/settings.txt +5 −0 Original line number Diff line number Diff line Loading @@ -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:: Loading Loading
docs/ref/settings.txt +5 −0 Original line number Diff line number Diff line Loading @@ -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:: Loading