django-ajax
django-ajax copied to clipboard
namedtuple_as_object
error response list below
{"traceback":[{"line":48,"code":"result = f(*args, **kwargs)","file":"E:\\ajax \\decorators.py","in":"json_response"},{"line":69,"code":"separators=(',', ':')))","file":"E:\\ajax\\views.py","in":"endpoint_loader"}, {"line":334,"code":"**kw).encode(obj)","file":"C:\\Program Files\\Python27\\lib\\site- packages\\simplejson\\__init__.py","in":"dumps"}],"data":{"message":"__init__() got an unexpected keyword argument 'namedtuple_as_object'","code":500},"success":false}
error code: 500
error message: "init() got an unexpected keyword argument 'namedtuple_as_object'"
how can i solve this problem?
is that errors relate in django or simplejson ?
i use django 1.5.1
thank you.
some related urls, hope can help:
https://docs.djangoproject.com/en/1.5/releases/1.5/#system-version-of-simplejson-no-longer-used
https://github.com/simplejson/simplejson/issues/37
solved. just uninstall simplejson and restart server ::
$:> pip uninstall simplejson
$:> manage.py runserver 80
I need simplejson for pyelasticsearch! Arghh!!
I solved my issue by installing simplejson==2.1.6