Python 2.7, Django 1.3, Apache2
For all to work via utf-8:
1) In the template base.html on the begin of the file we must write:
<meta http-equiv="Cintent-Type" content="text/html" charset=utf-8" Content-Transfer-Encoding: base64>
2) each python file must starting with follow string:
# -*- coding: utf-8 -*-
3) in functions view.py we change request encoding to utf-8:
request.encoding='utf-8'
4) in settings.py we must have:
LANGUAGE_CODE = 'ru'
For all to work via utf-8:
1) In the template base.html on the begin of the file we must write:
<meta http-equiv="Cintent-Type" content="text/html" charset=utf-8" Content-Transfer-Encoding: base64>
2) each python file must starting with follow string:
# -*- coding: utf-8 -*-
3) in functions view.py we change request encoding to utf-8:
request.encoding='utf-8'
4) in settings.py we must have:
LANGUAGE_CODE = 'ru'
In django.forms we can use IDs for work with combobox (there is not utf-8 in address string).
Комментариев нет:
Отправить комментарий