Environment Request Method POST Request URL http nicegnulinux org ua e

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Environment:
Request Method: POST
Request URL: http://nicegnulinux.org.ua/edit_info
Django Version: 1.2 pre-alpha SVN-11423
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'common',
'forum',
'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response
92. response = callback(request, *callback_args, **callback_kwargs)
File "/home/generatorglukoff/www/nicegnulinux/common/views.py" in edit_user_info
301. return HttpResponseRedirect(u'/users/%s' % user.username)
File "/usr/local/lib/python2.5/site-packages/django/http/__init__.py" in __init__
407. self['Location'] = redirect_to
File "/usr/local/lib/python2.5/site-packages/django/http/__init__.py" in __setitem__
320. header, value = self._convert_to_ascii(header, value)
File "/usr/local/lib/python2.5/site-packages/django/http/__init__.py" in _convert_to_ascii
309. value = value.encode('us-ascii')
Exception Type: UnicodeEncodeError at /edit_info
Exception Value: 'ascii' codec can't encode characters in position 7-14: ordinal not in range(128), HTTP response headers must be in US-ASCII format