django - How to use special chars in admindocs? -


i have comments models special chars, examle:

[...] informacją [...] 

but when run admin get:

'ascii' codec can't decode byte 0xc4 in position 23: ordinal not in range(128). passed in <django.utils.functional.__proxy__ object @ 0x7f0e3b35aa50> (<class 'django.utils.functional.__proxy__'>) 

i have:

# -*- coding: utf-8 -*- 

at beginig of file. happen when install django-admin-tools

try use unicode function:

output = unicode(stringwithspecialchars)


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -