Google App Engineの新機能です。Google App Engine Python - ProjectIDをNDBクライアントライブラリに渡しますか?
# Imports the Google Cloud client library
from google.cloud import datastore
# Instantiates a client
datastore_client = datastore.Client('my_project_id')
が、NDBを使用して::
from google.appengine.ext import ndb
私はそれを標準的な環境でアプリケーションを構築していますし、Python NDBクライアントライブラリにPROJECTIDを渡す方法を知りたいのですが、同じようにライブラリ内のすべての関連する方法はありますか.yamlファイルに含めるそれだけで可能です?:
application: "my_project_id"
version: 1
ありがとうございました。はい、私はちょうどそれが 'cloudstorage'と同じであることを認識しました。 App Engineに直接組み込まれているので、私はGAEを使用している限り、 'from google.cloud import storage'を使用する必要はありません。 – Finfa811