# TypeError at /simchip/retrieve_stats/

## not enough arguments for format string

Request Method: | GET
Request URL: | http://127.0.0.1:8000/simchip/retrieve_stats/
Exception Type: | TypeError
Exception Value: | not enough arguments for format string
Exception Location: | /Local/Projects/D/Pyggy/pyggy/simchip/models.py in retrieve_stats, line 137

## Traceback (innermost last)

Switch to copy-and-paste view

- `/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/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
  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 retrieve at 0x1575370>
  callback_args | ()
  callback_kwargs | {}
  debug | <module 'django.views.debug' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/views/debug.pyc'>
  e | TypeError('not enough arguments for format string',)
  exceptions | <module 'django.core.exceptions' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/exceptions.pyc'>
  mail_admins | <function mail_admins at 0x1568cf0>
  middleware_method | <bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x156c8f0>>
  request | <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, COOKIES:{}, META:{'Apple_PubSub_Socket_Render': '/tmp/launch-ccU07T/Render', 'CC': 'gcc -m32', 'COMMAND_MODE': 'unix2003', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CPLUS': 'g++ -m32', 'CXX': 'g++ -m32', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'pyggy.settings', 'EMPTY_FRAMES': '/Local/Projects/C/FPGA/xc2s300e/empty.frm', 'FPGA': '/Local/Projects/C/FPGA', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GROUP': 'staff', 'HOME': '/Users/greg', 'HOST': 'wolfsbane.local', 'HOSTTYPE': 'intel-mac', 'HTTP_ACCEPT_ENCODING': 'identity', 'HTTP_HOST': '127.0.0.1:8000', 'LANG': 'en_NZ.UTF-8', 'LOGNAME': 'greg', 'MACHTYPE': 'x86_64', 'OSTYPE': 'darwin', 'PATH': '/opt/local/bin:/opt/local/sbin:/Local/Projects/D/PyGUI/Source/bin:/Local/Projects/C/Neal/PyAssets/Source/bin:/Local/Projects/C/FPGA/Tools:/Local/Projects/D/Pyrex/Source/bin:/Local/Projects/D/Pyrex/Testing/bin:/Local/Projects/C/PICAsm:/Local/bin:/Local/Projects/C/Scripts:/usr/local/bin:/usr/X11R6/bin:/Library/Frameworks/Firebird.framework/Versions/Current/Resources/bin:/bin:/sbin:/usr/bin:/usr/sbin:.', 'PATH_INFO': '/simchip/retrieve_stats/', 'PKG_CONFIG_PATH': '/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/lib/pkgconfig', 'PWD': '/Local/Projects/D/Pyggy/pyggy', 'PYASSETS_DATA_DIR': '/Local/Projects/C/Neal/Data', 'PYTHONPATH': '/Local/Projects/C/Plex/1.1.5:/Local/Projects/D/Pyrex/Source:/Local/Projects/D/PyGUI/Source', 'PyOpenGL_X11': '/Local/Build/PyOpenGL/2.0.0.44/build/lib.darwin-6.8-Power_Macintosh-2.3', 'QUERY_STRING': '', 'REMOTEHOST': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7', 'SHELL': '/bin/tcsh', 'SHLVL': '1', 'SSH_AUTH_SOCK': '/tmp/launch-VkbHQe/Listeners', 'TCSHRC': '1', 'TERM': 'xterm-color', 'TERM_PROGRAM': 'Apple_Terminal', 'TERM_PROGRAM_VERSION': '273', 'TMPDIR': '/var/folders/pt/ptWbIBidFOGihAoVFzVWZU+++TI/-Tmp-/', 'TZ': 'UTC', 'USER': 'greg', 'VENDOR': 'apple', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x3240d0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x1533330>, '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 0x156c950>
  response | None
  self | <django.core.handlers.wsgi.WSGIHandler object at 0x12183d0>
  settings | <django.conf.LazySettings object at 0x57dcb0>
  urlconf | 'pyggy.urls'
  urlresolvers | <module 'django.core.urlresolvers' from '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/urlresolvers.pyc'>

- `/Local/Projects/D/Pyggy/pyggy/simchip/views.py` in `retrieve`
  22. response.status_code = status
  23. response.write(log.getvalue())
  24. return response
  26. def retrieve(request):
  27. log = StringIO()
  28. try:
  29. retrieve_stats(request, log) ...
  30. status = 200
  31. except RequestError, e:
  32. log.write("ERROR: %s\n" % e)
  33. status = 400
  34. response = HttpResponse(mimetype = "text/plain")
  35. response.status_code = status
  ▶ Local vars

  Variable | Value
  --- | ---
  log | <cStringIO.StringO object at 0x156cf40>
  request | <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, COOKIES:{}, META:{'Apple_PubSub_Socket_Render': '/tmp/launch-ccU07T/Render', 'CC': 'gcc -m32', 'COMMAND_MODE': 'unix2003', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CPLUS': 'g++ -m32', 'CXX': 'g++ -m32', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'pyggy.settings', 'EMPTY_FRAMES': '/Local/Projects/C/FPGA/xc2s300e/empty.frm', 'FPGA': '/Local/Projects/C/FPGA', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GROUP': 'staff', 'HOME': '/Users/greg', 'HOST': 'wolfsbane.local', 'HOSTTYPE': 'intel-mac', 'HTTP_ACCEPT_ENCODING': 'identity', 'HTTP_HOST': '127.0.0.1:8000', 'LANG': 'en_NZ.UTF-8', 'LOGNAME': 'greg', 'MACHTYPE': 'x86_64', 'OSTYPE': 'darwin', 'PATH': '/opt/local/bin:/opt/local/sbin:/Local/Projects/D/PyGUI/Source/bin:/Local/Projects/C/Neal/PyAssets/Source/bin:/Local/Projects/C/FPGA/Tools:/Local/Projects/D/Pyrex/Source/bin:/Local/Projects/D/Pyrex/Testing/bin:/Local/Projects/C/PICAsm:/Local/bin:/Local/Projects/C/Scripts:/usr/local/bin:/usr/X11R6/bin:/Library/Frameworks/Firebird.framework/Versions/Current/Resources/bin:/bin:/sbin:/usr/bin:/usr/sbin:.', 'PATH_INFO': '/simchip/retrieve_stats/', 'PKG_CONFIG_PATH': '/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/lib/pkgconfig', 'PWD': '/Local/Projects/D/Pyggy/pyggy', 'PYASSETS_DATA_DIR': '/Local/Projects/C/Neal/Data', 'PYTHONPATH': '/Local/Projects/C/Plex/1.1.5:/Local/Projects/D/Pyrex/Source:/Local/Projects/D/PyGUI/Source', 'PyOpenGL_X11': '/Local/Build/PyOpenGL/2.0.0.44/build/lib.darwin-6.8-Power_Macintosh-2.3', 'QUERY_STRING': '', 'REMOTEHOST': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7', 'SHELL': '/bin/tcsh', 'SHLVL': '1', 'SSH_AUTH_SOCK': '/tmp/launch-VkbHQe/Listeners', 'TCSHRC': '1', 'TERM': 'xterm-color', 'TERM_PROGRAM': 'Apple_Terminal', 'TERM_PROGRAM_VERSION': '273', 'TMPDIR': '/var/folders/pt/ptWbIBidFOGihAoVFzVWZU+++TI/-Tmp-/', 'TZ': 'UTC', 'USER': 'greg', 'VENDOR': 'apple', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x3240d0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x1533330>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>

- `/Local/Projects/D/Pyggy/pyggy/simchip/models.py` in `retrieve_stats`
  130. log.write("args: %s\n" % args)
  131. cursor = connection.cursor()
  132. cursor.execute(sql, args)
  133. lines = defaultdict(list)
  134. for key, bucket, count in cursor.fetchall():
  135. lines[key].append("%s=%s" % (bucket, count))
  136. for key, line in lines.iteritems():
  137. log.write("%s:%s:%s" % ",".join(line)) ...
  ▶ Local vars

  Variable | Value
  --- | ---
  args | ['IS']
  bucket | 1
  bucket_expr | 'cast(value / 1.0 as integer)'
  count | 1
  cursor | <django.db.backends.util.CursorDebugWrapper object at 0x1576390>
  key | 'TESTING2'
  line | ['1=1']
  lines | defaultdict(<type 'list'>, {'TESTING2': ['1=1']})
  log | <cStringIO.StringO object at 0x156cf40>
  params | <MultiValueDict: {}>
  request | <WSGIRequest GET:<MultiValueDict: {}>, POST:<MultiValueDict: {}>, COOKIES:{}, META:{'Apple_PubSub_Socket_Render': '/tmp/launch-ccU07T/Render', 'CC': 'gcc -m32', 'COMMAND_MODE': 'unix2003', 'CONTENT_LENGTH': '', 'CONTENT_TYPE': 'text/plain', 'CPLUS': 'g++ -m32', 'CXX': 'g++ -m32', 'DISPLAY': ':0.0', 'DJANGO_SETTINGS_MODULE': 'pyggy.settings', 'EMPTY_FRAMES': '/Local/Projects/C/FPGA/xc2s300e/empty.frm', 'FPGA': '/Local/Projects/C/FPGA', 'GATEWAY_INTERFACE': 'CGI/1.1', 'GROUP': 'staff', 'HOME': '/Users/greg', 'HOST': 'wolfsbane.local', 'HOSTTYPE': 'intel-mac', 'HTTP_ACCEPT_ENCODING': 'identity', 'HTTP_HOST': '127.0.0.1:8000', 'LANG': 'en_NZ.UTF-8', 'LOGNAME': 'greg', 'MACHTYPE': 'x86_64', 'OSTYPE': 'darwin', 'PATH': '/opt/local/bin:/opt/local/sbin:/Local/Projects/D/PyGUI/Source/bin:/Local/Projects/C/Neal/PyAssets/Source/bin:/Local/Projects/C/FPGA/Tools:/Local/Projects/D/Pyrex/Source/bin:/Local/Projects/D/Pyrex/Testing/bin:/Local/Projects/C/PICAsm:/Local/bin:/Local/Projects/C/Scripts:/usr/local/bin:/usr/X11R6/bin:/Library/Frameworks/Firebird.framework/Versions/Current/Resources/bin:/bin:/sbin:/usr/bin:/usr/sbin:.', 'PATH_INFO': '/simchip/retrieve_stats/', 'PKG_CONFIG_PATH': '/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/lib/pkgconfig', 'PWD': '/Local/Projects/D/Pyggy/pyggy', 'PYASSETS_DATA_DIR': '/Local/Projects/C/Neal/Data', 'PYTHONPATH': '/Local/Projects/C/Plex/1.1.5:/Local/Projects/D/Pyrex/Source:/Local/Projects/D/PyGUI/Source', 'PyOpenGL_X11': '/Local/Build/PyOpenGL/2.0.0.44/build/lib.darwin-6.8-Power_Macintosh-2.3', 'QUERY_STRING': '', 'REMOTEHOST': '', 'REMOTE_ADDR': '127.0.0.1', 'REMOTE_HOST': '', 'REQUEST_METHOD': 'GET', 'RUN_MAIN': 'true', 'SCRIPT_NAME': '', 'SERVER_NAME': 'localhost', 'SERVER_PORT': '8000', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7', 'SHELL': '/bin/tcsh', 'SHLVL': '1', 'SSH_AUTH_SOCK': '/tmp/launch-VkbHQe/Listeners', 'TCSHRC': '1', 'TERM': 'xterm-color', 'TERM_PROGRAM': 'Apple_Terminal', 'TERM_PROGRAM_VERSION': '273', 'TMPDIR': '/var/folders/pt/ptWbIBidFOGihAoVFzVWZU+++TI/-Tmp-/', 'TZ': 'UTC', 'USER': 'greg', 'VENDOR': 'apple', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x3240d0>, 'wsgi.file_wrapper': <class 'django.core.servers.basehttp.FileWrapper'>, 'wsgi.input': <socket._fileobject object at 0x1533330>, 'wsgi.multiprocess': False, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
  sd | <pyggy.simchip.models.StatDef object at 0x12e8df0>
  sql | 'select level_key, cast(value / 1.0 as integer) as b, count(cast(value / 1.0 as integer)) as n from simchip_solution S join simchip_stat T on S.id = T.solution_id where stat_code = %s'
  where | 'stat_code = %s'

`Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/Local/Projects/D/Pyggy/pyggy/simchip/views.py" in retrieve 29. retrieve_stats(request, log) File "/Local/Projects/D/Pyggy/pyggy/simchip/models.py" in retrieve_stats 137. log.write("%s:%s:%s" % ",".join(line)) TypeError at /simchip/retrieve_stats/ not enough arguments for format string`

## Request information

### GET

No GET data

### POST

No POST data

### COOKIES

No cookie data

### META

Variable | Value
--- | ---
Apple_PubSub_Socket_Render | '/tmp/launch-ccU07T/Render'
CC | 'gcc -m32'
COMMAND_MODE | 'unix2003'
CONTENT_LENGTH | ''
CONTENT_TYPE | 'text/plain'
CPLUS | 'g++ -m32'
CXX | 'g++ -m32'
DISPLAY | ':0.0'
DJANGO_SETTINGS_MODULE | 'pyggy.settings'
EMPTY_FRAMES | '/Local/Projects/C/FPGA/xc2s300e/empty.frm'
FPGA | '/Local/Projects/C/FPGA'
GATEWAY_INTERFACE | 'CGI/1.1'
GROUP | 'staff'
HOME | '/Users/greg'
HOST | 'wolfsbane.local'
HOSTTYPE | 'intel-mac'
HTTP_ACCEPT_ENCODING | 'identity'
HTTP_HOST | '127.0.0.1:8000'
LANG | 'en_NZ.UTF-8'
LOGNAME | 'greg'
MACHTYPE | 'x86_64'
OSTYPE | 'darwin'
PATH | '/opt/local/bin:/opt/local/sbin:/Local/Projects/D/PyGUI/Source/bin:/Local/Projects/C/Neal/PyAssets/Source/bin:/Local/Projects/C/FPGA/Tools:/Local/Projects/D/Pyrex/Source/bin:/Local/Projects/D/Pyrex/Testing/bin:/Local/Projects/C/PICAsm:/Local/bin:/Local/Projects/C/Scripts:/usr/local/bin:/usr/X11R6/bin:/Library/Frameworks/Firebird.framework/Versions/Current/Resources/bin:/bin:/sbin:/usr/bin:/usr/sbin:.'
PATH_INFO | '/simchip/retrieve_stats/'
PKG_CONFIG_PATH | '/usr/local/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/lib/pkgconfig'
PWD | '/Local/Projects/D/Pyggy/pyggy'
PYASSETS_DATA_DIR | '/Local/Projects/C/Neal/Data'
PYTHONPATH | '/Local/Projects/C/Plex/1.1.5:/Local/Projects/D/Pyrex/Source:/Local/Projects/D/PyGUI/Source'
PyOpenGL_X11 | '/Local/Build/PyOpenGL/2.0.0.44/build/lib.darwin-6.8-Power_Macintosh-2.3'
QUERY_STRING | ''
REMOTEHOST | ''
REMOTE_ADDR | '127.0.0.1'
REMOTE_HOST | ''
REQUEST_METHOD | 'GET'
RUN_MAIN | 'true'
SCRIPT_NAME | ''
SERVER_NAME | 'localhost'
SERVER_PORT | '8000'
SERVER_PROTOCOL | 'HTTP/1.1'
SERVER_SOFTWARE | 'WSGIServer/0.1 Python/2.7'
SHELL | '/bin/tcsh'
SHLVL | '1'
SSH_AUTH_SOCK | '/tmp/launch-VkbHQe/Listeners'
TCSHRC | '1'
TERM | 'xterm-color'
TERM_PROGRAM | 'Apple_Terminal'
TERM_PROGRAM_VERSION | '273'
TMPDIR | '/var/folders/pt/ptWbIBidFOGihAoVFzVWZU+++TI/-Tmp-/'
TZ | 'UTC'
USER | 'greg'
VENDOR | 'apple'
__CF_USER_TEXT_ENCODING | '0x1F5:0:0'
wsgi.errors | <open file '<stderr>', mode 'w' at 0x3240d0>
wsgi.file_wrapper | <class 'django.core.servers.basehttp.FileWrapper'>
wsgi.input | <socket._fileobject object at 0x1533330>
wsgi.multiprocess | False
wsgi.multithread | True
wsgi.run_once | False
wsgi.url_scheme | 'http'
wsgi.version | (1, 0)

### Settings

#### Using settings module `pyggy.settings`

Setting | Value
--- | ---
ABSOLUTE_URL_OVERRIDES | {}
ADMINS | (('Greg Ewing', 'greg.ewing@canterbury.ac.nz'),)
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 | 'sqlite3'
DATABASE_HOST | ''
DATABASE_NAME | '/Local/Projects/D/Pyggy/Data/pyggy-test.db'
DATABASE_OPTIONS | {}
DATABASE_PASSWORD | '********************'
DATABASE_PORT | ''
DATABASE_USER | ''
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'
DIARY_RSS_FILE | '/Local/Projects/D/Pyggy/Media/rss/diaries.rss'
DIARY_RSS_FILE_NEW | '/Local/Projects/D/Pyggy/Media/rss/diaries.rss.new'
DISALLOWED_USER_AGENTS | ()
EMAIL_HOST | 'smtphost.canterbury.ac.nz'
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', 'pyggy.challenge', 'pyggy.simchip']
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 | (('Greg Ewing', 'greg.ewing@canterbury.ac.nz'),)
MEDIA_ROOT | '/Local/Projects/D/Pyggy/Media/dl'
MEDIA_URL | 'http://localhost/media/pyggy/dl/'
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 | 'pyggy.urls'
RSS_URL | 'http://localhost/media/pyggy/rss/'
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 | 'pyggy.settings'
SITE_ID | 1
STATIC_ROOT | '/Local/Projects/D/Pyggy/Media/static'
STATIC_URL | 'http://localhost/media/pyggy/static/'
SUPPRESS_EMAIL_ERRORS | False
TEMPLATE_CONTEXT_PROCESSORS | ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'pyggy.challenge.views.context.challenges', 'pyggy.challenge.views.context.urls')
TEMPLATE_DEBUG | True
TEMPLATE_DIRS | ('/Local/Projects/D/Pyggy/pyggy/challenge/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'
THUMBNAIL_EXT | '.jpg'
THUMBNAIL_FORMAT | 'JPEG'
THUMBNAIL_SIZE | (120, 120)
TIME_FORMAT | 'P'
TIME_ZONE | 'UTC'
TRANSACTIONS_MANAGED | False
URL_VALIDATOR_USER_AGENT | 'Django/0.96.2 (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.