Ticket #22924: 22924.diff

File 22924.diff, 738 bytes (added by Tim Graham, 10 years ago)
  • docs/ref/settings.txt

    diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
    index 5b51e45..a90235c 100644
    a b for :doc:`managing stored files </topics/files>`. It must end in a slash if set  
    17131713to a non-empty value. You will need to :ref:`configure these files to be served
    17141714<serving-uploaded-files-in-development>` in both development and production.
    17151715
     1716In order to use ``{{ MEDIA_URL }}`` in your templates, you must have
     1717``'django.core.context_processors.media'`` in your
     1718:setting:`TEMPLATE_CONTEXT_PROCESSORS`. It's there by default, but be careful
     1719to include it if you override that setting and want this behavior.
     1720
    17161721Example: ``"http://media.example.com/"``
    17171722
    17181723.. warning::
Back to Top