Open zztemp001 opened 11 years ago
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
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.