On Sun, Mar 29, 2009 at 7:14 PM, IanR <ianrear...@gmail.com> wrote:

> I'm trying to stay a close to the suggested Django conventions as
> possible.  I have a few variables that I need to render any page.

Check out context processors:
http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-own-context-processors

> base_media_url, this is the url of where I store all my static files
> and media, images, javascript, css

This is actually already available if you use the RequestContext, as
by default, the list of context processors include the media url:

http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-media

-- dz

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to