다음은 OSX 용 솔루션입니다. AppEngine Python SDK의 Python 라이브러리를 추가하기 만하면됩니다. app.yaml에 마법 문장이 포함되어 있는지 확인하십시오.
builtins:
- remote_api: on
import sys
import glob
sys.path.append('/usr/local/google_appengine')
for l in glob.glob("/usr/local/google_appengine/lib/*"):
sys.path.append(l)
import getpass
from google.appengine.ext.remote_api import remote_api_stub
# import your app-specific libraries here.
def auth_func():
return (raw_input('Username:'), getpass.getpass('Password:'))
# or hardcode it; remember you MUST use application passwords.
# https://security.google.com/settings/security/apppasswords
# return ('USERNAME', 'PASSWORD')
remote_api_stub.ConfigureRemoteApi(None, '/_ah/remote_api', auth_func,
'______.appspot.com')
# do your stuff here.
내 로컬 컴퓨터에 내 소스 코드가 있고 내 응용 프로그램 디렉터리와 동일합니다. – Sam