Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Internal Server Error: /api/adds
- Traceback (most recent call last):
- File "/srv/pydj/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
- response = get_response(request)
- File "/srv/pydj/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
- response = self.process_exception_by_middleware(e, request)
- File "/srv/pydj/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
- File "./playlist/views.py", line 374, in api
- data = serialize("json", adds, relations={'song':{'relations':('artist'), 'fields':('title', 'length', 'artist', 'avgscore')}, 'adder':{'fields':('username')}})
- File "/srv/pydj/local/lib/python2.7/site-packages/django/core/serializers/__init__.py", line 129, in serialize
- s.serialize(queryset, **options)
- File "/srv/pydj/local/lib/python2.7/site-packages/wadofstuff/django/serializers/base.py", line 68, in serialize
- self.end_serialization()
- File "/srv/pydj/local/lib/python2.7/site-packages/wadofstuff/django/serializers/json.py", line 16, in end_serialization
- simplejson.dump(self.objects, self.stream, cls=DjangoJSONEncoder,
- AttributeError: 'module' object has no attribute 'dump'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement