On Thursday, 5 January 2012 11:18:52 UTC, Hassan wrote:
>
> Dear ALL, 
>
> i am trying to do render_to_response('index.html') , and i keep geting 
> this dont know why ? its a normal html page ??!! what to do ? 
>
 

You need to post some code.

However 99 times out of 100, when you see this error it's because the 
__unicode__ method in one of your models is not actually outputting 
unicode, and/or is converting wrongly. For instance, instead of this:

    def __unicode__(self):
        return 'foo %s' % self.bar

you should do this:

    def __unicode__(self):
        return u'foo %s' % self.bar

(note extra u).
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ZW1gMyxE56YJ.
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