On Wed, Jul 20, 2011 at 1:01 PM, Andre Terra <andrete...@gmail.com> wrote:
> From what I'm seeing, you haven't created your own context processor,
> and the default processors do not add MEDIA_URL to the context.
>

django.core.context_processors.media adds MEDIA_URL to the context,
and is in TEMPLATE_CONTEXT_PROCESSORS in global_settings.

OP has overridden his TEMPLATE_CONTEXT_PROCESSORS, and not included
django.core.context_processors.media, which is why it is unavailable.
He doesn't need to write his own context processor, he needs to
include the ones that are included by default.

Cheers

Tom

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