On 10/4/05, Maniac <[EMAIL PROTECTED]> wrote:
> What's the recommended (if any) way to reference MEDIA_URL defined in
> settings file from templates?

MEDIA_URL is used by all FileFields to give their objects a
get_FOO_url() method. See this page:

http://www.djangoproject.com/documentation/db_api/#get-foo-url

Right now, there's no other way to get to MEDIA_URL, because it's
intended to be used only by the FileFields. Out of curiosity, what's
your use case for using it otherwise?

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org

Reply via email to