如何在 App Engine 上激活交互式控制台? [英] How do I activate the Interactive Console on App Engine?
问题描述
我有一个问题,我想使用您在本地开发服务器上获得的交互式控制台(http://localhost:8080/_ah/admin) 以确保查询正常工作预计.
I have an issue and I'd like to use the Interactive console 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?
推荐答案
将以下内容添加到您的 app.yaml 中,在任何 .* 处理程序之前:
Add the following to your app.yaml, before any .* handler:
- url: /admin/.*
script: $PYTHON_LIB/google/appengine/ext/admin
login: admin
您的用例的另一个选项是启用 remote_api,然后使用 SDK 附带的 remote_api_shell.py
工具,允许您从本地 Python shell 测试内容.
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.
这篇关于如何在 App Engine 上激活交互式控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!