HI,
I can not understand where is the error. when you insert a
blog comment I receive an email, but this'
the email I receive !
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/
base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/home/max/public_html/examplesite.com/django/dbe/blog/
views.py", line 78, in add_comment
comment.save(notify=notify)
File "/home/max/public_html/examplesite.com/django/dbe/blog/
models.py", line 44, in save
self.body)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
41: ordinal not in range(128)
<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'body': [u'cm'], u'csrfmiddlewaretoken':
[u'e6f50f68eea775e6913acfa18363c8a9'], u'author': [u'cm']}>,
COOKIES:{'csrftoken': 'e6f50f68eea775e6913acfa18363c8a9'},
META:{'CONTENT_LENGTH': '70',
'CONTENT_TYPE': 'application/x-www-form-urlencoded',
'CSRF_COOKIE': 'e6f50f68eea775e6913acfa18363c8a9',
'DOCUMENT_ROOT': '/etc/apache2/htdocs',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'application/xml,application/xhtml+xml,text/
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4',
'HTTP_CACHE_CONTROL': 'max-age=0',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'csrftoken=e6f50f68eea775e6913acfa18363c8a9',
'HTTP_HOST': '10.0.0.163',
'HTTP_ORIGIN': 'http://10.0.0.163',
'HTTP_REFERER': 'http://10.0.0.163/10/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/
534.24 (KHTML, like Gecko) Chrome/11.0.696.60 Safari/534.24',
'PATH_INFO': u'/add_comment/10/',
'PATH_TRANSLATED': '/home/max/public_html/examplesite.com/django/dbe/
apache/myblog.wsgi/add_comment/10/',
'QUERY_STRING': '',
'REMOTE_ADDR': '10.0.0.6',
'REMOTE_PORT': '6069',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/add_comment/10/',
'SCRIPT_FILENAME': '/home/max/public_html/examplesite.com/django/dbe/
apache/myblog.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '10.0.0.163',
'SERVER_ADMIN': '[email protected]',
'SERVER_NAME': '10.0.0.163',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Ubuntu) Server at
10.0.0.163 Port 80</address>\n',
'SERVER_SOFTWARE': 'Apache/2.2.16 (Ubuntu)',
'mod_wsgi.application_group': 'www.examplesite.com|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '80',
'mod_wsgi.process_group': 'examplesite.com',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 2),
'wsgi.errors': <mod_wsgi.Log object at 0x7f19633c80f0>,
'wsgi.file_wrapper': <built-in method file_wrapper of
mod_wsgi.Adapter object at 0x7f1963280c60>,
'wsgi.input': <mod_wsgi.Input object at 0x7f19633c8930>,
'wsgi.multiprocess': True,
'wsgi.multithread': True,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 1)}>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.