rendered paste body
Warning at /admin/polls/poll/7/
Incorrect string value: '\xC4\x8Dka' for column 'object_repr' at row 1
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/polls/poll/7/
Exception Type: Warning
Exception Value: Incorrect string value: '\xC4\x8Dka' for column 'object_repr' at row 1
Exception Location: C:\Python25\lib\warnings.py in warn_explicit, line 102
Traceback (innermost last)
Switch to copy-and-paste view
* c:\Python25\lib\site-packages\django\core\handlers\base.py in get_response
70. # Apply view middleware
71. for middleware_method in self._view_middleware:
72. response = middleware_method(request, callback, callback_args, callback_kwargs)
73. if response:
74. return response
75.
76. try:
77. response = callback(request, *callback_args, **callback_kwargs) ...
78. except Exception, e:
79. # If the view raised an exception, run it through exception
80. # middleware, and if the exception middleware returns a
81. # response, use that. Otherwise, reraise the exception.
82. for middleware_method in self._exception_middleware:
83. response = middleware_method(request, e)
▶ Local vars
Variable Value
callback
<function _checklogin at 0x0157F9B0>
callback_args
('polls', 'poll', '7')
callback_kwargs
{}
debug
<module 'django.views.debug' from 'C:\python25\lib\site-packages\django\views\debug.pyc'>
e
Warning("Incorrect string value: '\\xC4\\x8Dka' for column 'object_repr' at row 1",)
exceptions
<module 'django.core.exceptions' from 'C:\python25\lib\site-packages\django\core\exceptions.pyc'>
mail_admins
<function mail_admins at 0x014D3970>
middleware_method
<bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x014F81B0>>
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {'choice.1.id': [''], 'choice.1.choice': [''], 'question': ['Ma\xc4\x8dka'], 'pub_date_time': ['18:24:25'], 'choice.0.id': ['2'], 'choice.0.choice': ['ena'], 'choice.0.votes': ['1'], 'pub_date_date': ['2008-03-09'], 'choice.1.votes': ['']}>, COOKIES:{'sessionid': '4daf0576ff8d03d19239a751d00d8dee'}, META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'ALTIUMPATH': 'C:\\Program Files\\Altium Designer 6\\System', 'APPDATA': 'C:\\Documents and Settings\\Jan\\Application Data', 'CLIENTNAME': 'Console', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'HP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '168', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'mysite.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and Settings\\Jan', 'HTTP_ACCEPT': 'text/xml,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-2,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'sl,en-gb;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4daf0576ff8d03d19239a751d00d8dee', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://127.0.0.1:8000/admin/polls/poll/7/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12', 'LOGONSERVER': '\\\\HP', 'NUMBER_OF_PROCESSORS': '2', 'OS': 'Windows_NT', 'PATH': 'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\utils;C:\\python25;C:\\Program Files\\Altium Designer 6\\System', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': '/admin/polls/poll/7/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 15 Model 104 Stepping 1, AuthenticAMD', 'PROCESSOR_LEVEL': '15', 'PROCESSOR_REVISION': '6801', 'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'TMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'USERDOMAIN': 'HP', 'USERNAME': 'Jan', 'USERPROFILE': 'C:\\Documents and Settings\\Jan', 'WINDIR': 'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x00A6F0B0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x0152F7B0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver
<django.core.urlresolvers.RegexURLResolver object at 0x014A3790>
response
None
self
<django.core.handlers.wsgi.WSGIHandler object at 0x00CB7D30>
settings
<django.conf.LazySettings object at 0x00B9ECF0>
urlconf
'mysite.urls'
urlresolvers
<module 'django.core.urlresolvers' from 'C:\python25\lib\site-packages\django\core\urlresolvers.pyc'>
* C:\python25\lib\site-packages\django\contrib\admin\views\decorators.py in _checklogin
48. def _checklogin(request, *args, **kwargs):
49. if request.user.is_authenticated() and request.user.is_staff:
50. # The user is valid. Continue to the admin page.
51. if request.POST.has_key('post_data'):
52. # User must have re-authenticated through a different window
53. # or tab.
54. request.POST = _decode_post_data(request.POST['post_data'])
55. return view_func(request, *args, **kwargs) ...
56.
57. assert hasattr(request, 'session'), "The Django admin requires session middleware to be installed. Edit your MIDDLEWARE_CLASSES setting to insert 'django.contrib.sessions.middleware.SessionMiddleware'."
58.
59. # If this isn't already the login page, display it.
60. if not request.POST.has_key(LOGIN_FORM_KEY):
61. if request.POST:
▶ Local vars
Variable Value
args
('polls', 'poll', '7')
kwargs
{}
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {'choice.1.id': [''], 'choice.1.choice': [''], 'question': ['Ma\xc4\x8dka'], 'pub_date_time': ['18:24:25'], 'choice.0.id': ['2'], 'choice.0.choice': ['ena'], 'choice.0.votes': ['1'], 'pub_date_date': ['2008-03-09'], 'choice.1.votes': ['']}>, COOKIES:{'sessionid': '4daf0576ff8d03d19239a751d00d8dee'}, META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'ALTIUMPATH': 'C:\\Program Files\\Altium Designer 6\\System', 'APPDATA': 'C:\\Documents and Settings\\Jan\\Application Data', 'CLIENTNAME': 'Console', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'HP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '168', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'mysite.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and Settings\\Jan', 'HTTP_ACCEPT': 'text/xml,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-2,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'sl,en-gb;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4daf0576ff8d03d19239a751d00d8dee', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://127.0.0.1:8000/admin/polls/poll/7/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12', 'LOGONSERVER': '\\\\HP', 'NUMBER_OF_PROCESSORS': '2', 'OS': 'Windows_NT', 'PATH': 'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\utils;C:\\python25;C:\\Program Files\\Altium Designer 6\\System', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': '/admin/polls/poll/7/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 15 Model 104 Stepping 1, AuthenticAMD', 'PROCESSOR_LEVEL': '15', 'PROCESSOR_REVISION': '6801', 'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'TMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'USERDOMAIN': 'HP', 'USERNAME': 'Jan', 'USERPROFILE': 'C:\\Documents and Settings\\Jan', 'WINDIR': 'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x00A6F0B0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x0152F7B0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
view_func
<function _wrapped_view_func at 0x0157F970>
* C:\python25\lib\site-packages\django\views\decorators\cache.py in _wrapped_view_func
32.
33. def never_cache(view_func):
34. """
35. Decorator that adds headers to a response so that it will
36. never be cached.
37. """
38. def _wrapped_view_func(request, *args, **kwargs):
39. response = view_func(request, *args, **kwargs) ...
40. add_never_cache_headers(response)
41. return response
42. return _wrapped_view_func
▶ Local vars
Variable Value
args
('polls', 'poll', '7')
kwargs
{}
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {'choice.1.id': [''], 'choice.1.choice': [''], 'question': ['Ma\xc4\x8dka'], 'pub_date_time': ['18:24:25'], 'choice.0.id': ['2'], 'choice.0.choice': ['ena'], 'choice.0.votes': ['1'], 'pub_date_date': ['2008-03-09'], 'choice.1.votes': ['']}>, COOKIES:{'sessionid': '4daf0576ff8d03d19239a751d00d8dee'}, META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'ALTIUMPATH': 'C:\\Program Files\\Altium Designer 6\\System', 'APPDATA': 'C:\\Documents and Settings\\Jan\\Application Data', 'CLIENTNAME': 'Console', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'HP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '168', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'mysite.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and Settings\\Jan', 'HTTP_ACCEPT': 'text/xml,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-2,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'sl,en-gb;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4daf0576ff8d03d19239a751d00d8dee', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://127.0.0.1:8000/admin/polls/poll/7/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12', 'LOGONSERVER': '\\\\HP', 'NUMBER_OF_PROCESSORS': '2', 'OS': 'Windows_NT', 'PATH': 'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\utils;C:\\python25;C:\\Program Files\\Altium Designer 6\\System', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': '/admin/polls/poll/7/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 15 Model 104 Stepping 1, AuthenticAMD', 'PROCESSOR_LEVEL': '15', 'PROCESSOR_REVISION': '6801', 'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'TMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'USERDOMAIN': 'HP', 'USERNAME': 'Jan', 'USERPROFILE': 'C:\\Documents and Settings\\Jan', 'WINDIR': 'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x00A6F0B0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x0152F7B0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
view_func
<function change_stage at 0x0157F930>
* C:\python25\lib\site-packages\django\contrib\admin\views\main.py in change_stage
336. if manipulator.fields_changed:
337. change_message.append(_('Changed %s.') % get_text_list(manipulator.fields_changed, _('and')))
338. if manipulator.fields_deleted:
339. change_message.append(_('Deleted %s.') % get_text_list(manipulator.fields_deleted, _('and')))
340. change_message = ' '.join(change_message)
341. if not change_message:
342. change_message = _('No fields changed.')
343. LogEntry.objects.log_action(request.user.id, ContentType.objects.get_for_model(model).id, pk_value, str(new_object), CHANGE, change_message) ...
344.
345. msg = _('The %(name)s "%(obj)s" was changed successfully.') % {'name': opts.verbose_name, 'obj': new_object}
346. if request.POST.has_key("_continue"):
347. request.user.message_set.create(message=msg + ' ' + _("You may edit it again below."))
348. if request.REQUEST.has_key('_popup'):
349. return HttpResponseRedirect(request.path + "?_popup=1")
▶ Local vars
Variable Value
app_label
'polls'
change_message
'No fields changed.'
errors
{}
manipulator
<django.db.models.manipulators.ChangeManipulator object at 0x014A3650>
model
<class 'mysite.polls.models.Poll'>
model_name
'poll'
new_data
<MultiValueDict: {'choice.1.id': [''], 'choice.1.choice': [''], 'question': ['Ma\xc4\x8dka'], 'pub_date_time': [datetime.time(18, 24, 25)], 'choice.0.id': ['2'], 'choice.0.choice': ['ena'], 'choice.0.votes': [1], 'pub_date_date': [datetime.date(2008, 3, 9)], 'choice.1.votes': [None]}>
new_object
<Poll: Mačka>
object_id
'7'
opts
<Options for Poll>
pk_value
'7'
request
<WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {'choice.1.id': [''], 'choice.1.choice': [''], 'question': ['Ma\xc4\x8dka'], 'pub_date_time': ['18:24:25'], 'choice.0.id': ['2'], 'choice.0.choice': ['ena'], 'choice.0.votes': ['1'], 'pub_date_date': ['2008-03-09'], 'choice.1.votes': ['']}>, COOKIES:{'sessionid': '4daf0576ff8d03d19239a751d00d8dee'}, META:{'ALLUSERSPROFILE': 'C:\\Documents and Settings\\All Users', 'ALTIUMPATH': 'C:\\Program Files\\Altium Designer 6\\System', 'APPDATA': 'C:\\Documents and Settings\\Jan\\Application Data', 'CLIENTNAME': 'Console', 'COMMONPROGRAMFILES': 'C:\\Program Files\\Common Files', 'COMPUTERNAME': 'HP', 'COMSPEC': 'C:\\WINDOWS\\system32\\cmd.exe', 'CONTENT_LENGTH': '168', 'CONTENT_TYPE': 'application/x-www-form-urlencoded', 'DJANGO_SETTINGS_MODULE': 'mysite.settings', 'FP_NO_HOST_CHECK': 'NO', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HOMEDRIVE': 'C:', 'HOMEPATH': '\\Documents and Settings\\Jan', 'HTTP_ACCEPT': 'text/xml,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-2,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'sl,en-gb;q=0.7,en;q=0.3', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE': 'sessionid=4daf0576ff8d03d19239a751d00d8dee', 'HTTP_HOST': '127.0.0.1:8000', 'HTTP_KEEP_ALIVE': '300', 'HTTP_REFERER': 'http://127.0.0.1:8000/admin/polls/poll/7/', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12', 'LOGONSERVER': '\\\\HP', 'NUMBER_OF_PROCESSORS': '2', 'OS': 'Windows_NT', 'PATH': 'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\utils;C:\\python25;C:\\Program Files\\Altium Designer 6\\System', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH', 'PATH_INFO': '/admin/polls/poll/7/', 'PROCESSOR_ARCHITECTURE': 'x86', 'PROCESSOR_IDENTIFIER': 'x86 Family 15 Model 104 Stepping 1, AuthenticAMD', 'PROCESSOR_LEVEL': '15', 'PROCESSOR_REVISION': '6801', 'PROGRAMFILES': 'C:\\Program Files', 'PROMPT': '$P$G', 'QUERY_STRING': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'POST', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.5.1', 'SESSIONNAME': 'Console', 'SYSTEMDRIVE': 'C:', 'SYSTEMROOT': 'C:\\WINDOWS', 'TEMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'TMP': 'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp', 'USERDOMAIN': 'HP', 'USERNAME': 'Jan', 'USERPROFILE': 'C:\\Documents and Settings\\Jan', 'WINDIR': 'C:\\WINDOWS', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x00A6F0B0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x0152F7B0>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
* C:\python25\lib\site-packages\django\contrib\admin\models.py in log_action
6. ADDITION = 1
7. CHANGE = 2
8. DELETION = 3
9.
10. class LogEntryManager(models.Manager):
11. def log_action(self, user_id, content_type_id, object_id, object_repr, action_flag, change_message=''):
12. e = self.model(None, None, user_id, content_type_id, object_id, object_repr[:200], action_flag, change_message)
13. e.save() ...
14.
15. class LogEntry(models.Model):
16. action_time = models.DateTimeField(_('action time'), auto_now=True)
17. user = models.ForeignKey(User)
18. content_type = models.ForeignKey(ContentType, blank=True, null=True)
19. object_id = models.TextField(_('object id'), blank=True, null=True)
▶ Local vars
Variable Value
action_flag
2
change_message
'No fields changed.'
content_type_id
8L
e
2008-03-09 21:00:52.687000
object_id
'7'
object_repr
'Ma\xc4\x8dka'
self
<django.contrib.admin.models.LogEntryManager object at 0x0148E810>
user_id
1L
* c:\Python25\lib\site-packages\django\db\models\base.py in save
231. # TODO: This assumes the database supports subqueries.
232. placeholders.append('(SELECT COUNT(*) FROM %s WHERE %s = %%s)' % \
233. (backend.quote_name(self._meta.db_table), backend.quote_name(self._meta.order_with_respect_to.column)))
234. db_values.append(getattr(self, self._meta.order_with_respect_to.attname))
235. if db_values:
236. cursor.execute("INSERT INTO %s (%s) VALUES (%s)" % \
237. (backend.quote_name(self._meta.db_table), ','.join(field_names),
238. ','.join(placeholders)), db_values) ...
239. else:
240. # Create a new record with defaults for everything.
241. cursor.execute("INSERT INTO %s (%s) VALUES (%s)" %
242. (backend.quote_name(self._meta.db_table),
243. backend.quote_name(self._meta.pk.column),
244. backend.get_pk_default_value()))
▶ Local vars
Variable Value
cursor
<django.db.backends.util.CursorDebugWrapper object at 0x017F7610>
db_values
['2008-03-09 21:00:52', 1L, 8L, '7', 'Ma\xc4\x8dka', 2, 'No fields changed.']
f
<django.db.models.fields.TextField object at 0x0148B910>
field_names
['`action_time`', '`user_id`', '`content_type_id`', '`object_id`', '`object_repr`', '`action_flag`', '`change_message`']
non_pks
[<django.db.models.fields.DateTimeField object at 0x0147EC10>, <django.db.models.fields.related.ForeignKey object at 0x01482B10>, <django.db.models.fields.related.ForeignKey object at 0x01482B30>, <django.db.models.fields.TextField object at 0x01482BB0>, <django.db.models.fields.CharField object at 0x01486AD0>, <django.db.models.fields.PositiveSmallIntegerField object at 0x014889F0>, <django.db.models.fields.TextField object at 0x0148B910>]
pk_set
False
pk_val
None
placeholders
['%s', '%s', '%s', '%s', '%s', '%s', '%s']
record_exists
True
self
2008-03-09 21:00:52.687000
* C:\python25\lib\site-packages\django\db\backends\util.py in execute
5. def __init__(self, cursor, db):
6. self.cursor = cursor
7. self.db = db
8.
9. def execute(self, sql, params=()):
10. start = time()
11. try:
12. return self.cursor.execute(sql, params) ...
13. finally:
14. stop = time()
15. # If params was a list, convert it to a tuple, because string
16. # formatting with '%' only works with tuples or dicts.
17. if not isinstance(params, (tuple, dict)):
18. params = tuple(params)
▶ Local vars
Variable Value
params
('2008-03-09 21:00:52', 1L, 8L, '7', 'Ma\xc4\x8dka', 2, 'No fields changed.')
self
<django.db.backends.util.CursorDebugWrapper object at 0x017F7610>
sql
'INSERT INTO `django_admin_log` (`action_time`,`user_id`,`content_type_id`,`object_id`,`object_repr`,`action_flag`,`change_message`) VALUES (%s,%s,%s,%s,%s,%s,%s)'
start
1205092852.687
stop
1205092852.687
* C:\Python25\Lib\site-packages\MySQLdb\cursors.py in execute
161. self.errorhandler(self, TypeError, m)
162. except:
163. exc, value, tb = exc_info()
164. del tb
165. self.messages.append((exc, value))
166. self.errorhandler(self, exc, value)
167. self._executed = query
168. if not self._defer_warnings: self._warning_check() ...
169. return r
170.
171. def executemany(self, query, args):
172.
173. """Execute a multi-row query.
174.
▶ Local vars
Variable Value
ListType
<type 'list'>
TupleType
<type 'tuple'>
args
['2008-03-09 21:00:52', 1L, 8L, '7', 'Ma\xc4\x8dka', 2, 'No fields changed.']
charset
'utf8'
db
<weakproxy at 01790F90 to Connection at 013B7F60>
exc_info
<built-in function exc_info>
query
"INSERT INTO `django_admin_log` (`action_time`,`user_id`,`content_type_id`,`object_id`,`object_repr`,`action_flag`,`change_message`) VALUES ('2008-03-09 21:00:52',1,8,'7','Ma\xc4\x8dka',2,'No fields changed.')"
r
1L
self
<MySQLdb.cursors.Cursor object at 0x017F5A10>
* C:\Python25\Lib\site-packages\MySQLdb\cursors.py in _warning_check
75. warnings = self._get_db().show_warnings()
76. if warnings:
77. # This is done in two loops in case
78. # Warnings are set to raise exceptions.
79. for w in warnings:
80. self.messages.append((self.Warning, w))
81. for w in warnings:
82. warn(w[-1], self.Warning, 3) ...
83. elif self._info:
84. self.messages.append((self.Warning, self._info))
85. warn(self._info, self.Warning, 3)
86.
87. def nextset(self):
88. """Advance to the next result set.
▶ Local vars
Variable Value
self
<MySQLdb.cursors.Cursor object at 0x017F5A10>
w
('Warning', 1366L, "Incorrect string value: '\\xC4\\x8Dka' for column 'object_repr' at row 1")
warn
<function warn at 0x00ADDA30>
warnings
(('Warning', 1366L, "Incorrect string value: '\\xC4\\x8Dka' for column 'object_repr' at row 1"),)
* C:\Python25\lib\warnings.py in warn
55. except AttributeError:
56. # embedded interpreters don't have sys.argv, see bug #839151
57. filename = '__main__'
58. if not filename:
59. filename = module
60. registry = globals.setdefault("__warningregistry__", {})
61. warn_explicit(message, category, filename, lineno, module, registry,
62. globals) ...
63.
64. def warn_explicit(message, category, filename, lineno,
65. module=None, registry=None, module_globals=None):
66. if module is None:
67. module = filename or "<unknown>"
68. if module[-3:].lower() == ".py":
▶ Local vars
Variable Value
caller
<frame object at 0x015A7098>
category
<class '_mysql_exceptions.Warning'>
filename
'C:\\python25\\lib\\site-packages\\django\\db\\backends\\util.py'
fnl
'c:\\python25\\lib\\site-packages\\django\\db\\backends\\util.pyc'
globals
{'CursorDebugWrapper': <class 'django.db.backends.util.CursorDebugWrapper'>, '__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'WindowsError': <type 'exceptions.WindowsError'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '_': <function gettext at 0x00BD0530>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2007 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-Z plus Return to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'min': <built-in function min>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-Z plus Return to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>}, '__doc__': None, '__file__': 'C:\\python25\\lib\\site-packages\\django\\db\\backends\\util.pyc', '__name__': 'django.db.backends.util', '__warningregistry__': {}, '_dict_helper': <function _dict_helper at 0x00CAE3F0>, 'datetime': <module 'datetime' (built-in)>, 'dictfetchall': <function dictfetchall at 0x00CAE4B0>, 'dictfetchmany': <function dictfetchmany at 0x00CAE470>, 'dictfetchone': <function dictfetchone at 0x00CAE430>, 'rev_typecast_boolean': <function rev_typecast_boolean at 0x00CAE3B0>, 'time': <built-in function time>, 'typecast_boolean': <function typecast_boolean at 0x00CAE370>, 'typecast_date': <function typecast_date at 0x00CAE1B0>, 'typecast_time': <function typecast_time at 0x00CAE2F0>, 'typecast_timestamp': <function typecast_timestamp at 0x00CAE330>}
lineno
12
message
"Incorrect string value: '\\xC4\\x8Dka' for column 'object_repr' at row 1"
module
'django.db.backends.util'
registry
{}
stacklevel
3
* C:\Python25\lib\warnings.py in warn_explicit
95. return
96.
97. # Prime the linecache for formatting, in case the
98. # "file" is actually in a zipfile or something.
99. linecache.getlines(filename, module_globals)
100.
101. if action == "error":
102. raise message ...
103. # Other actions
104. if action == "once":
105. registry[key] = 1
106. oncekey = (text, category)
107. if onceregistry.get(oncekey):
108. return
▶ Local vars
Variable Value
action
'error'
cat
<class '_mysql_exceptions.Warning'>
category
<class '_mysql_exceptions.Warning'>
filename
'C:\\python25\\lib\\site-packages\\django\\db\\backends\\util.py'
item
('error', <_sre.SRE_Pattern object at 0x0157ABC0>, <class '_mysql_exceptions.Warning'>, <_sre.SRE_Pattern object at 0x0157ABF0>, 0)
key
("Incorrect string value: '\\xC4\\x8Dka' for column 'object_repr' at row 1", <class '_mysql_exceptions.Warning'>, 12)
lineno
12
ln
0
message
Warning("Incorrect string value: '\\xC4\\x8Dka' for column 'object_repr' at row 1",)
mod
<_sre.SRE_Pattern object at 0x0157ABF0>
module
'django.db.backends.util'
module_globals
{'CursorDebugWrapper': <class 'django.db.backends.util.CursorDebugWrapper'>, '__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'WindowsError': <type 'exceptions.WindowsError'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '_': <function gettext at 0x00BD0530>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2007 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': Use exit() or Ctrl-Z plus Return to exit, 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'min': <built-in function min>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <built-in function open>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'property': <type 'property'>, 'quit': Use quit() or Ctrl-Z plus Return to exit, 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>}, '__doc__': None, '__file__': 'C:\\python25\\lib\\site-packages\\django\\db\\backends\\util.pyc', '__name__': 'django.db.backends.util', '__warningregistry__': {}, '_dict_helper': <function _dict_helper at 0x00CAE3F0>, 'datetime': <module 'datetime' (built-in)>, 'dictfetchall': <function dictfetchall at 0x00CAE4B0>, 'dictfetchmany': <function dictfetchmany at 0x00CAE470>, 'dictfetchone': <function dictfetchone at 0x00CAE430>, 'rev_typecast_boolean': <function rev_typecast_boolean at 0x00CAE3B0>, 'time': <built-in function time>, 'typecast_boolean': <function typecast_boolean at 0x00CAE370>, 'typecast_date': <function typecast_date at 0x00CAE1B0>, 'typecast_time': <function typecast_time at 0x00CAE2F0>, 'typecast_timestamp': <function typecast_timestamp at 0x00CAE330>}
msg
<_sre.SRE_Pattern object at 0x0157ABC0>
registry
{}
text
"Incorrect string value: '\\xC4\\x8Dka' for column 'object_repr' at row 1"
Traceback (most recent call last):
File "c:\Python25\lib\site-packages\django\core\handlers\base.py" in get_response
77. response = callback(request, *callback_args, **callback_kwargs)
File "C:\python25\lib\site-packages\django\contrib\admin\views\decorators.py" in _checklogin
55. return view_func(request, *args, **kwargs)
File "C:\python25\lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func
39. response = view_func(request, *args, **kwargs)
File "C:\python25\lib\site-packages\django\contrib\admin\views\main.py" in change_stage
343. LogEntry.objects.log_action(request.user.id, ContentType.objects.get_for_model(model).id, pk_value, str(new_object), CHANGE, change_message)
File "C:\python25\lib\site-packages\django\contrib\admin\models.py" in log_action
13. e.save()
File "c:\Python25\lib\site-packages\django\db\models\base.py" in save
238. ','.join(placeholders)), db_values)
File "C:\python25\lib\site-packages\django\db\backends\util.py" in execute
12. return self.cursor.execute(sql, params)
File "C:\Python25\Lib\site-packages\MySQLdb\cursors.py" in execute
168. if not self._defer_warnings: self._warning_check()
File "C:\Python25\Lib\site-packages\MySQLdb\cursors.py" in _warning_check
82. warn(w[-1], self.Warning, 3)
File "C:\Python25\lib\warnings.py" in warn
62. globals)
File "C:\Python25\lib\warnings.py" in warn_explicit
102. raise message
Warning at /admin/polls/poll/7/
Incorrect string value: '\xC4\x8Dka' for column 'object_repr' at row 1
Request information
GET
No GET data
POST
Variable Value
choice.1.id
''
choice.1.choice
''
question
'Ma\xc4\x8dka'
pub_date_time
'18:24:25'
choice.0.id
'2'
choice.0.choice
'ena'
choice.0.votes
'1'
pub_date_date
'2008-03-09'
choice.1.votes
''
COOKIES
Variable Value
sessionid
'4daf0576ff8d03d19239a751d00d8dee'
META
Variable Value
ALLUSERSPROFILE
'C:\\Documents and Settings\\All Users'
ALTIUMPATH
'C:\\Program Files\\Altium Designer 6\\System'
APPDATA
'C:\\Documents and Settings\\Jan\\Application Data'
CLIENTNAME
'Console'
COMMONPROGRAMFILES
'C:\\Program Files\\Common Files'
COMPUTERNAME
'HP'
COMSPEC
'C:\\WINDOWS\\system32\\cmd.exe'
CONTENT_LENGTH
'168'
CONTENT_TYPE
'application/x-www-form-urlencoded'
DJANGO_SETTINGS_MODULE
'mysite.settings'
FP_NO_HOST_CHECK
'NO'
GATEWAY_INTERFACE
'CGI/1.1'
HOMEDRIVE
'C:'
HOMEPATH
'\\Documents and Settings\\Jan'
HTTP_ACCEPT
'text/xml,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-2,utf-8;q=0.7,*;q=0.7'
HTTP_ACCEPT_ENCODING
'gzip,deflate'
HTTP_ACCEPT_LANGUAGE
'sl,en-gb;q=0.7,en;q=0.3'
HTTP_CONNECTION
'keep-alive'
HTTP_COOKIE
'sessionid=4daf0576ff8d03d19239a751d00d8dee'
HTTP_HOST
'127.0.0.1:8000'
HTTP_KEEP_ALIVE
'300'
HTTP_REFERER
'http://127.0.0.1:8000/admin/polls/poll/7/'
HTTP_USER_AGENT
'Mozilla/5.0 (Windows; U; Windows NT 5.1; sl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12'
LOGONSERVER
'\\\\HP'
NUMBER_OF_PROCESSORS
'2'
OS
'Windows_NT'
PATH
'C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\utils;C:\\python25;C:\\Program Files\\Altium Designer 6\\System'
PATHEXT
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PATH_INFO
'/admin/polls/poll/7/'
PROCESSOR_ARCHITECTURE
'x86'
PROCESSOR_IDENTIFIER
'x86 Family 15 Model 104 Stepping 1, AuthenticAMD'
PROCESSOR_LEVEL
'15'
PROCESSOR_REVISION
'6801'
PROGRAMFILES
'C:\\Program Files'
PROMPT
'$P$G'
QUERY_STRING
''
REMOTE_ADDR
'127.0.0.1'
REMOTE_HOST
''
REQUEST_METHOD
'POST'
RUN_MAIN
'true'
SCRIPT_NAME
''
SERVER_NAME
'localhost'
SERVER_PORT
'8000'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'WSGIServer/0.1 Python/2.5.1'
SESSIONNAME
'Console'
SYSTEMDRIVE
'C:'
SYSTEMROOT
'C:\\WINDOWS'
TEMP
'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp'
TMP
'C:\\DOCUME~1\\Jan\\LOCALS~1\\Temp'
USERDOMAIN
'HP'
USERNAME
'Jan'
USERPROFILE
'C:\\Documents and Settings\\Jan'
WINDIR
'C:\\WINDOWS'
wsgi.errors
<open file '<stderr>', mode 'w' at 0x00A6F0B0>
wsgi.file_wrapper
<class 'django.core.servers.basehttp.FileWrapper'>
wsgi.input
<socket._fileobject object at 0x0152F7B0>
wsgi.multiprocess
False
wsgi.multithread
True
wsgi.run_once
False
wsgi.url_scheme
'http'
wsgi.version
(1, 0)
Settings
Using settings module mysite.settings
Setting Value
ABSOLUTE_URL_OVERRIDES
{}
ADMINS
()
ADMIN_FOR
()
ADMIN_MEDIA_PREFIX
'/media/'
ALLOWED_INCLUDE_ROOTS
()
APPEND_SLASH
True
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
BANNED_IPS
()
CACHE_BACKEND
'simple://'
CACHE_MIDDLEWARE_KEY_PREFIX
''
COMMENTS_ALLOW_PROFANITIES
False
COMMENTS_BANNED_USERS_GROUP
None
COMMENTS_FIRST_FEW
0
COMMENTS_MODERATORS_GROUP
None
COMMENTS_SKETCHY_USERS_GROUP
None
DATABASE_ENGINE
'mysql'
DATABASE_HOST
''
DATABASE_NAME
'test'
DATABASE_OPTIONS
{}
DATABASE_PASSWORD
'********************'
DATABASE_PORT
''
DATABASE_USER
'django'
DATETIME_FORMAT
'N j, Y, P'
DATE_FORMAT
'N j, Y'
DEBUG
True
DEFAULT_CHARSET
'utf-8'
DEFAULT_CONTENT_TYPE
'text/html'
DEFAULT_FROM_EMAIL
'webmaster@localhost'
DISALLOWED_USER_AGENTS
()
EMAIL_HOST
'localhost'
EMAIL_HOST_PASSWORD
'********************'
EMAIL_HOST_USER
''
EMAIL_PORT
25
EMAIL_SUBJECT_PREFIX
'[Django] '
FIXTURE_DIRS
()
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
INSTALLED_APPS
['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'mysite.polls']
INTERNAL_IPS
()
JING_PATH
'/usr/bin/jing'
LANGUAGES
(('ar', 'Arabic'), ('bn', 'Bengali'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('es', 'Spanish'), ('es_AR', 'Argentinean Spanish'), ('fi', 'Finnish'), ('fr', 'French'), ('gl', 'Galician'), ('hu', 'Hungarian'), ('he', 'Hebrew'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('kn', 'Kannada'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('pl', 'Polish'), ('pt', 'Portugese'), ('pt-br', 'Brazilian'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sr', 'Serbian'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
LANGUAGES_BIDI
('he', 'ar')
LANGUAGE_CODE
'en-us'
MANAGERS
()
MEDIA_ROOT
''
MEDIA_URL
''
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware')
MONTH_DAY_FORMAT
'F j'
PREPEND_WWW
False
PROFANITIES_LIST
'********************'
ROOT_URLCONF
'mysite.urls'
SECRET_KEY
'********************'
SEND_BROKEN_LINK_EMAILS
False
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_AGE
1209600
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
SESSION_COOKIE_SECURE
False
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
SESSION_SAVE_EVERY_REQUEST
False
SETTINGS_MODULE
'mysite.settings'
SITE_ID
1
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n')
TEMPLATE_DEBUG
True
TEMPLATE_DIRS
('d:/www/mysite/templates',)
TEMPLATE_LOADERS
('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
TEMPLATE_STRING_IF_INVALID
''
TEST_DATABASE_NAME
None
TEST_RUNNER
'django.test.simple.run_tests'
TIME_FORMAT
'P'
TIME_ZONE
'America/Chicago'
TRANSACTIONS_MANAGED
False
URL_VALIDATOR_USER_AGENT
'Django/0.96.1 (http://www.djangoproject.com)'
USE_ETAGS
False
USE_I18N
True
YEAR_MONTH_FORMAT
'F Y'
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.