UnicodeEncodeError at /admin/blog/post/add/ 'ascii' codec can't encode character u'\u0105' in position 17: ordinal not in range(128)
When i try to add content via Django admin, i have problem when i using polish letters like śźó...
UnicodeEncodeError at /admin/blog/post/add/ 'ascii' codec can't encode character u'\u0105' in position 17: ordinal not in range(128)
When i try to add content via Django admin, i have problem when i using polish letters like śźó...
Your problem is probably coming from your models.py
Inside each model, your def __unicode__(self): method probably does not return the unicode name correctly. You can fix this by returning a unicode .
Example:
def __unicode__(self):
return u'{f}'.format(f=self.fieldName)
where fieldName is the desired thing you want to show inside your django admin panel. If you provide me with your models.py I can try and change my example to suit your code.
Hope this helps!