Thank you Karen, that was it. I wonder if this is a bug and should be reported...
The origial error was an error in the {% cycle %}-tag... Kind regards, Mikkel Høgh On Nov 6, 2:58 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > It would appear the Django template code is actually trying to raise a > VariableDoesNotExist error, and tripping up on attempting to render a > context that contains non-ASCII data. I don't know the correct fix for > that, but as a temporary fix if you change line 130 of your > > /usr/local/lib/python2.5/site-packages/django/template/__init__.py > > (currently "return self.msg % self.params") > > to something like: > > return 'Variable does not exist: %s' % self.params[0] > > You should at least get an error pinpointing the variable your template is > accessing that does not exist and where it is trying to be used instead of > the UnicodeDecodeError, so you might be able to make progress on getting > your own template/code to work. > > Karen > > On 11/5/07, Mikkel Høgh <[EMAIL PROTECTED]> wrote: > > > > > I have a bit of a problem with a project I'm creating. I get an > > UnicodeDecodeError from some of the template code. The traceback is > > here: > >http://dpaste.com/24285/ > > > It tries to decode the title field from unicode into ascii, but I > > cannot seem to understand why... > > I have dpaste'd the code in question. > > > Template:http://dpaste.com/24284/ > > Model (where the get_task function is):http://dpaste.com/24281/ > > View (I suppose that's rather irrelevant):http://dpaste.com/24286/ > > > Since the code is open source, you can browse it in its entirety here: > >http://codebrowse.launchpad.net/~mikl/kaplan/kaplan.dev/files > > > If anyone can figure this out, you will have my eternal gratitude > > Thanks to Magus- in #django for trying - if you are reading this, I > > changed the part you pointed out to use Django's slugify function > > instead of str().lower(), but that wasn't it, sadly. > > > Kind regards, > > Mikkel Høgh --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---