Testing Google Protobuf on App Engine
See import fix and actual project.
To deploy set application ID and version environment variables
export APP_ID="foo"
export APP_VERSION="bar"
and then run
make deploy
Make sure to visit the APIs console at
https://console.developers.google.com/project/<YOUR-PROJECT>/apiui/api
and enable "Google Cloud Datastore API".
In addition, make sure the App Engine Service Account has permissions as a member of your project:
https://console.developers.google.com/project/<YOUR-PROJECT>/permissions
and add the email
<YOUR-PROJECT>@appspot.gserviceaccount.com
Due to the lines
from google.appengine.api.app_identity import get_application_id
...
APP_NAME = get_application_id()
...
if APP_NAME is None:
DATASET = None
else:
DATASET = CONNECTION.dataset(APP_NAME)