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 useful template-related
things, including a context processor for media settings (and a
generic way to generate context processors for settings).

Code, and a bit of documentation (the full docs, which I need to
update into the Google Code wiki for the project, are in the "docs"
directory of its SVN repository) is here:

http://code.google.com/p/django-template-utils/

The context processor stuff is known to work, so it should be good for
general use. Other parts of the app still need a little bit of polish.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to