On 12/13/06, Joseph Heck <[EMAIL PROTECTED]> wrote:
> We're using
>
> blah blah <img src="{{media_url}}/img/foo.jpg" alt="this is a foo"> blah
...
> And then in the settings.py under TEMPLATE_CONTEXT_PROCESSORS, we added:
> "myproject.context_processors.common",
>
> There may well be a much better way to accomplish this all, but that worked
> out nicely for us.
We're doing exactly the same thing. This isn't a provided dj context
processor due to the slippery slope of including all settings in
context. It's been raised many times. Adding media_url should
probably be a cookbook entry...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---