在Google App Engine中查看数据存储区

时间:2014-09-07 10:02:23

标签: python-2.7 google-app-engine google-cloud-datastore google-cloud-endpoints app-engine-ndb

我使用端点库来创建api,但现在我想检查对象是否正确填充。我正在使用python ndb。我使用GoogleAppEngineLauncher启动应用程序,但我无法在" / _ ah / admin / datastore"中查看数据存储区。在我的本地主机上。

目前我的app.yaml看起来像这样:

application: your-app-id
version: 1
runtime: python27
threadsafe: true
api_version: 1

handlers:
# Endpoints handler
- url: /_ah/spi/.*
  script: service.APPLICATION

libraries:
- name: pycrypto
  version: latest
- name:endpoints
  version: 1.0

我需要在app.yaml中添加哪些处理程序,我也必须单独启动数据存储区或 GoogleAppEngineLauncher是否启动它。

1 个答案:

答案 0 :(得分:1)

数据存储区自动由开发服务器启动。

使用最新版本的App Engine,您应该在日志中看到类似的内容:

INFO     2014-09-07 17:36:30,851 sdk_update_checker.py:229] Checking for updates to the SDK.
INFO     2014-09-07 17:36:32,344 sdk_update_checker.py:245] Update check failed: HTTP Error 404: Not Found
WARNING  2014-09-07 17:36:32,404 api_server.py:383] Could not initialize images
API; you are likely missing the Python "PIL" module.
INFO     2014-09-07 17:36:32,523 api_server.py:171] Starting API server at: http://localhost:62276
INFO     2014-09-07 17:36:32,530 dispatcher.py:183] Starting module "default" running at: http://localhost:8080
INFO     2014-09-07 17:36:32,536 admin_server.py:117] Starting admin server at:
http://localhost:8000

最后一行表示如何访问管理控制台:

INFO     2014-09-07 17:36:32,536 admin_server.py:117] Starting admin server at:
http://localhost:8000