Re: media urls in templates

2007-04-10 Thread James Bennett
On 4/10/07, Udi <[EMAIL PROTECTED]> wrote: > You can create a custom context processor that fetches the base media > url from your settings file and makes it available to the templates. I haven't yet officially "released" it, but I've been working on a small application which bundles a lot of use

Re: media urls in templates

2007-04-10 Thread Udi
You can create a custom context processor that fetches the base media url from your settings file and makes it available to the templates. Check this out: http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processors On Apr 4, 11:02 am, "akonsu" <[EMAIL PROTECTED]> wrote: > he

media urls in templates

2007-04-04 Thread akonsu
hello, i need a way to emit media url in a template. something similar to the {% url %} tag but for media. curently django site itself is in violation of the DRY principle: http://code.djangoproject.com/browser/djangoproject.com/django_website/templates/base.html (line 18 for example) i guess i