python - 谷歌应用引擎 : JSON module

标签 python django json google-app-engine

我在 Google App Engine 中使用 JSON .

我使用 JSON 进行通信,所以在 Python 方面我有:

import json

我得到的错误是这样的:

<class 'django.core.exceptions.ViewDoesNotExist'>: Could not import views.ganttapp. Error was: No module named json

在我的独立系统中,这很好用。 Google App Engine 上的 JSON 有什么问题吗?或者我应该使用另一个模块?

我不知道你是否可以打开它,但它是这样的:http://ganttapp.appspot.com/newgantt .您可以在此处找到错误。

最佳答案

也许您可以导入 Django simplejson包装器:

from django.utils import simplejson

关于python - 谷歌应用引擎 : JSON module,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2676767/

相关文章:

python - Heroku 部署,Yuglify 使用 Django 管道没有这样的文件

python - 获取 python 脚本以在 mac 中启动时运行

python - 对象不可迭代 : Filtering QuerySet to display latest instance

json - 从文件中解析json

iphone - JSON 雅虎财经图表数据 iOS 解析

java - 对象映射器 : Do not escape

python - Rdflib,Python : Are there any object framing methods to get nested dict/list structure from a graph a-la JSON-LD?

python - 如何在python中将小时添加到当前时间

python - 每日 cron 运行终止,因为它超过了最大运行时间

php - 泡沫.TypeNotFound : Type not found: 'MerchantCode'