Skip to content

Instantly share code, notes, and snippets.

@ghing
Created July 8, 2011 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghing/1072433 to your computer and use it in GitHub Desktop.
Save ghing/1072433 to your computer and use it in GitHub Desktop.
District Builder Traceback
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.6/dist-packages/Django-1.2.3-py2.6.egg/django/views/decorators/cache.py", line 56, in _cache_controlled
response = viewfunc(request, *args, **kw)
File "/projects/publicmapping_ohiov1.2/trunk/django/publicmapping/redistricting/views.py", line 133, in decorator
return function(request, *args, **kwargs)
File "/projects/publicmapping_ohiov1.2/trunk/django/publicmapping/redistricting/views.py", line 1245, in getdistricts
version = int(request.REQUEST['version'])
ValueError: invalid literal for int() with base 10: ''
<WSGIRequest
GET:<QueryDict: {u'version': [u'']}>,
POST:<QueryDict: {}>,
COOKIES:{'csrftoken': '4c6570a9441da895a4e06de634e9b6c7',
'sessionid': '8c279296a8ef0abbcbf168a649faa587'},
META:{'CSRF_COOKIE': '4c6570a9441da895a4e06de634e9b6c7',
'DOCUMENT_ROOT': '/htdocs',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTPS': '1',
'HTTP_ACCEPT': '*/*',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
'HTTP_CONNECTION': 'keep-alive',
'HTTP_COOKIE': 'csrftoken=4c6570a9441da895a4e06de634e9b6c7; sessionid=8c279296a8ef0abbcbf168a649faa587',
'HTTP_HOST': 'districtbuilder.drawthelineohio.org',
'HTTP_REFERER': 'https://districtbuilder.drawthelineohio.org/districtmapping/plan/87/edit/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30',
'HTTP_X_CSRFTOKEN': '4c6570a9441da895a4e06de634e9b6c7',
'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
'PATH': '/usr/local/bin:/usr/bin:/bin',
'PATH_INFO': u'/districtmapping/plan/87/districts/',
'PATH_TRANSLATED': '/projects/publicmapping_ohiov1.2/trunk/django/publicmapping-ohio-v1.2.wsgi/districtmapping/plan/87/districts/',
'QUERY_STRING': 'version=',
'REMOTE_ADDR': '216.158.51.82',
'REMOTE_PORT': '60639',
'REQUEST_METHOD': 'GET',
'REQUEST_URI': '/districtmapping/plan/87/districts/?version=',
'SCRIPT_FILENAME': '/projects/publicmapping_ohiov1.2/trunk/django/publicmapping-ohio-v1.2.wsgi',
'SCRIPT_NAME': u'',
'SCRIPT_URI': 'https://districtbuilder.drawthelineohio.org/districtmapping/plan/87/districts/',
'SCRIPT_URL': '/districtmapping/plan/87/districts/',
'SERVER_ADDR': '10.10.20.201',
'SERVER_ADMIN': 'ghing@mcic.org',
'SERVER_NAME': 'districtbuilder.drawthelineohio.org',
'SERVER_PORT': '443',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '<address>Apache/2.2.14 (Ubuntu) Server at districtbuilder.drawthelineohio.org Port 443</address>\n',
'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)',
'SSL_TLS_SNI': 'districtbuilder.drawthelineohio.org',
'mod_wsgi.application_group': 'districtbuilder.drawthelineohio.org|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '443',
'mod_wsgi.process_group': 'geodjango-ohio',
'mod_wsgi.reload_mechanism': '1',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (2, 8),
'wsgi.errors': <mod_wsgi.Log object at 0x7f365070e5d0>,
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f365070fa80>,
'wsgi.input': <mod_wsgi.Input object at 0x7f3651be6870>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'https',
'wsgi.version': (1, 0)}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment