Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created April 2, 2013 20:30
Show Gist options
  • Save groovecoder/5295895 to your computer and use it in GitHub Desktop.
Save groovecoder/5295895 to your computer and use it in GitHub Desktop.
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/api/page/foo?format=json&full=True
Django Version: 1.3
Python Version: 2.7.3
Installed Applications:
['django.contrib.auth',
'django.contrib.admin',
'django.contrib.gis',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'haystack',
'olwidget',
'registration',
'sorl.thumbnail',
'staticfiles',
'guardian',
'south',
'tastypie',
'honeypot',
'versionutils.versioning',
'versionutils.diff',
'ckeditor',
'maps',
'pages',
'redirects',
'tags',
'users',
'recentchanges',
'search',
'dashboard',
'api',
'utils']
Installed Middleware:
('utils.middleware.UpdateCacheMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'honeypot.middleware.HoneypotMiddleware',
'versionutils.versioning.middleware.AutoTrackUserInfoMiddleware',
'redirects.middleware.RedirectFallbackMiddleware',
'django.middleware.transaction.TransactionMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware',
'utils.middleware.TrackPOSTMiddleware',
'api.middleware.XsSharing')
Traceback:
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
39. resp = view_func(*args, **kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
52. return view_func(*args, **kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django_tastypie-0.9.12_custom5-py2.7.egg/tastypie/api.py" in view
321. return func(request, *args, **kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
39. resp = view_func(*args, **kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
52. return view_func(*args, **kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django_tastypie-0.9.12_custom5-py2.7.egg/tastypie/resources.py" in wrapper
198. response = callback(request, *args, **kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django_tastypie-0.9.12_custom5-py2.7.egg/tastypie/resources.py" in dispatch_detail
456. return self.dispatch('detail', request, **kwargs)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django_tastypie-0.9.12_custom5-py2.7.egg/tastypie/resources.py" in dispatch
476. response = method(request, **kwargs)
File "/Users/lcrouch/code/tulsawebdevs/localwiki-project/localwiki/sapling/pages/api.py" in get_detail
151. args=[page.slug])
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django/core/urlresolvers.py" in reverse
347. resolver = get_resolver(urlconf)
File "/Users/lcrouch/python/localwiki/lib/python2.7/site-packages/django/utils/functional.py" in wrapper
122. if mem_args in cache:
Exception Type: TypeError at /api/page/foo
Exception Value: unhashable type: 'list'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment