try: from django.utils import simplejson as jsonexcept: import simplejson as json 转载于:https://www.cnblogs.com/xqnq2007/p/6666856.html