如何在App Engine上激活交互式控制台? [英] How do I activate the Interactive Console on App Engine?
本文介绍了如何在App Engine上激活交互式控制台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有问题,我想使用您在本地开发服务器上获得的交互式控制台( http:// localhost:8080 / _ah / admin ),以确保查询正常工作期望。
在您启用它之前阅读 - 但它是如何完成的?
解决方案
- url:/ admin /。在你的app.yaml中添加以下内容: *
脚本:$ PYTHON_LIB / google / appengine / ext / admin
登录名:admin
您的用例的另一个选择是启用remote_api,然后使用SDK附带的 remote_api_shell.py
工具,从而允许您从本地Python shell 。
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?
解决方案
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.
这篇关于如何在App Engine上激活交互式控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文