On Apr 6, 9:34 pm, Karen Tracey <kmtra...@gmail.com> wrote:
> I suspect something's gone wrong with your context processor settings, or
> their operation.
>
> It's unclear to me from what you wrote if you wrote your own context
> processor to get MEDIA_URL or are simply using the provided one that does
> this:
>
> http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-c...

You're right, there was a problem with my context processor. I used a
snippet from this URL:
http://stackoverflow.com/questions/557460/django-having-middleware-communicate-with-views-templates

This is the line that was causing the problem:
'DJANGO_ROOT': request.META['SCRIPT_NAME'],

> If the former, I'd switch to the latter.  If you're already using the
> built-in one, I'd still try removing it and seeing if that fixes the issue.
> If it does, then you can look more closely at how they're being configured
> -- these two certainly don't usually interfere with each other.
>
> Karen

I've done exactly that, thanks!
--~--~---------~--~----~------------~-------~--~----~
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