This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 5th, 2013  |  syntax: Python  |  size: 0.99 KB  |  views: 176  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Internal Server Error: /
  2. Traceback (most recent call last):
  3.   File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
  4.     response = callback(request, *callback_args, **callback_kwargs)
  5.   File "/home/herve/django/cx/cx_manager/views.py", line 62, in login
  6.     set_cookie(response,"full_name",fn)
  7.   File "/home/herve/django/cx/cx_manager/views.py", line 13, in set_cookie
  8.     response.set_cookie(key, value, max_age=max_age, expires=expires, domain=settings.SESSION_COOKIE_DOMAIN, secure=settings.SESSION_COOKIE_SECURE or None)
  9.   File "/usr/local/lib/python2.7/dist-packages/django/http/response.py", line 157, in set_cookie
  10.     self.cookies[key] = value
  11.   File "/usr/lib/python2.7/Cookie.py", line 591, in __setitem__
  12.     rval, cval = self.value_encode(value)
  13.   File "/usr/lib/python2.7/Cookie.py", line 680, in value_encode
  14.     strval = str(val)
  15. UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 4: ordinal not in range(128)
clone this paste RAW Paste Data