开发者

How do I activate the Interactive Console on App Engine?

开发者 https://www.devze.com 2022-12-12 10:48 出处:网络
I have an issue and I\'d like to use the Interactive conso开发者_高级运维le you get on the local dev server (http://localhost:8080/_ah/admin) on the cloud server to make sure a query is working as I e

I have an issue and I'd like to use the Interactive conso开发者_高级运维le you get on the local dev server (http://localhost:8080/_ah/admin) on the cloud server to make sure a query is working as I expect.

I read before you can enable it - but how is it done?


Nick's answer doesn't work anymore when using the "threadsafe" option. Instead, you have to use:

- url: /admin/.*
  script: google.appengine.ext.admin.application
  login: admin


Add the following to your app.yaml, before any .* handler:

- url: /admin/.*
  script: $PYTHON_LIB/google/appengine/ext/admin
  login: admin

Another option for your use-case is to enable remote_api, then use the remote_api_shell.py tool included with the SDK, allowing you to test things from a local Python shell.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号