通过本地应用程序的数据存储远程API

2024-04-24 05:53:07 发布

您现在位置:Python中文网/ 问答频道 /正文

我基本上只是想访问我扔到数据存储的应用程序的远程API。我可以通过shell访问它,但不能在本地应用程序脚本中访问

我试过这个:

from google.appengine.ext.remote_api import remote_api_stub
import getpass

def auth_func():
  return (raw_input('Username:'), getpass.getpass('Password:'))

remote_api_stub.ConfigureRemoteApi(None, '/remote_api', auth_func,
                               'your_app_id.appspot.com')

但是,即使一切看起来都是正确的(路径和应用程序名),也要不断获得HTTPError: HTTP Error 404: Not Found。应用程序引擎最近有什么变化吗


Tags: 数据fromimport脚本authapi应用程序远程