سؤال

Having trouble using simplejson with google app engine running Python 2.7.

Just switched from Python 2.5 on the Master/Slave datastore to Python 2.7 on the High Replication Datastore. This used to work:

from django.utils import simplejson

Now in order to use json, I can do this:

import json

However, I have a need to use simplejson. This works on the localhost debugger, but not on the server:

import simplejson

How can I use this library when running Python 2.7 on GAE?

Thanks!

هل كانت مفيدة؟

المحلول

I think json and simplejson are now compatible. If you've got code using simplejson, you could try

import json as simplejson
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top