joestump / django-ajax

A simple framework for creating AJAX endpoints in Django.
http://github.com/joestump/django-ajax
BSD 3-Clause "New" or "Revised" License
260 stars 54 forks source link

namedtuple_as_object #33

Open zztemp001 opened 11 years ago

zztemp001 commented 11 years ago

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.

zztemp001 commented 11 years ago

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

zztemp001 commented 11 years ago

solved. just uninstall simplejson and restart server ::

$:> pip uninstall simplejson
$:> manage.py runserver 80
eamonnfaherty commented 10 years ago

I need simplejson for pyelasticsearch! Arghh!!

I solved my issue by installing simplejson==2.1.6