In 19 form errors Out 19 like This field is required url u0412 u044b u

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
In [19]: form.errors
Out[19]:
{'like': [u'This field is required.'],
'url': [u'\u0412\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430: http://www.imdb.com/title/tt0118767/']}
In [20]: myerrors = []
In [21]: for key, value in form.errors.items():
....: print key
....: print value
....:
....:
url
<ul class="errorlist"><li>Вы указали неверный адрес, пример правильного адреса: http://www.imdb.com/title/tt0118767/</li></ul>
like
<ul class="errorlist"><li>This field is required.</li></ul>