I added a comma and it worked fine. And i've learned something, i only thought you needed a comma if there where multiple items.
Many Thanks, Andrew On 2 Mar, 00:10, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sun, 2009-03-01 at 14:40 -0800, AKK wrote: > > Is this what you mean? > > > TEMPLATE_CONTEXT_PROCESSORS = ( > > "django.core.context_processors.media" > > ) > > If that's a cut-and-paste, then you need a trailing comma. In Python > ("a") is not a 1-tuple, it's the string "a". ("a",) -- with a trailing > comma -- is a 1-tuple. It's a necessary requirement because of the way > Python's grammar is expressed. > > Problem is that a string is also a sequence, so if you provide a string > where a tuple (or list or other sequence) is expected, things will > proceed for a way and then fail. That seems to be what is happening > here. You'll notice when I posted the suggestion to change > TEMPLATE_CONTEXT_PROCESSORS the other day, my 1-tuple had a trailing > comma, for example. > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---