Advertisement
Guest User

Untitled

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