DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128). You passed in <django.forms.boundfield.BoundField object at 0x7f41203ed790> (<class 'django.forms.boundfield.BoundField'>)
File "/home/paul/.virtualenvs/dss/local/lib/python2.7/site-packages/django/template/base.py", line 992, in render
bit = node.render_annotated(context)
File "/home/paul/.virtualenvs/dss/local/lib/python2.7/site-packages/django/template/base.py", line 959, in render_annotated
return self.render(context)
File "/home/paul/.virtualenvs/dss/local/lib/python2.7/site-packages/django/template/defaulttags.py", line 326, in render
return nodelist.render(context)
File "/home/paul/.virtualenvs/dss/local/lib/python2.7/site-packages/django/template/base.py", line 995, in render
bits.append(force_text(bit))
File "/home/paul/.virtualenvs/dss/local/lib/python2.7/site-packages/django/utils/encoding.py", line 88, in force_text
raise DjangoUnicodeDecodeError(s, *e.args)
我不知道是什么原因。
我在所有python文件中添加了# - - coding:utf-8 - 。