You also want to look here for a suggestion on how to access settings.MEDIA_URL:
http://www.b-list.org/weblog/2006/jun/14/django-tips-template-context-processors/ I know (at least one of) the ticket(s) for embedding access to the MEDIA_URL in the default context has been closed as wontfix, but I think that this is a pretty significant feature that Django forces new users to figure out how to do their own way. Its effectively a wheel that nearly everyone is going to have to re-invent. There's many less obvious ways to a Django newcomer than to use the context processors. I initially wrote mine as a tag, which exactly as that article says, seemed a little awkward, but I didn't know any better. It would be useful to at least have a recommended way of getting access to MEDIA_URL in the documentation if the Django team feels its inappropriate to add to the actual codebase (maybe in RequestContext?). -- --Leo Marty Alchin wrote: > On 10/24/07, Taft <[EMAIL PROTECTED]> wrote: >> I'd like to do something like this: >> >> <html> >> <head> >> ... >> <link href="{{ MEDIA_ROOT }}/style.css" rel="stylesheet" >> type="text/css" title="Style" /> >> ... >> </head> >> ... >> </html> >> >> >> Though I've searched high and low, I can't seem to find documentation >> that tells me how to do something like this. And like the above >> scenario, I can see a lot of newbies wanting to know how to do the >> same thing. Should this be added to the docs/tutorial/FAQ as well? > > http://www.djangoproject.com/documentation/settings/#media-url > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---