This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Description
This GAE example needs to be updated to make sure it works without warnings or errors with "gcloud preview app" deploy and run commands.
@aalexand0:tmp.Jc8sXZ7fnr$ git clone [email protected]:GoogleCloudPlatform/appengine-helloworld-python
Cloning into 'appengine-helloworld-python'...
remote: Counting objects: 21, done.
remote: Total 21 (delta 0), reused 0 (delta 0), pack-reused 21
Receiving objects: 100% (21/21), 9.75 KiB | 0 bytes/s, done.
Resolving deltas: 100% (5/5), done.
Checking connectivity... done.
@aalexand0:tmp.Jc8sXZ7fnr$ cd appengine-helloworld-python/
@aalexand0:appengine-helloworld-python$ gcloud config set project oval-time-515 # choose your own one
@aalexand0:appengine-helloworld-python$ gcloud preview app run ./app.yaml
WARNING: The [application] field is specified in file [/tmp/tmp.Jc8sXZ7fnr/appengine-helloworld-python/app.yaml]. This field is not used by gcloud and should be removed.
...
Command killed by keyboard interrupt
@aalexand0:appengine-helloworld-python$ gcloud preview app deploy ./app.yaml
WARNING: The [application] field is specified in file [/tmp/tmp.Jc8sXZ7fnr/appengine-helloworld-python/app.yaml]. This field is not used by gcloud and should be removed.
ERROR: The application [your-app-id] declared in [/tmp/tmp.Jc8sXZ7fnr/appengine-helloworld-python/app.yaml] does not match the current gcloud project [oval-time-515].
WARNING: The [version] field is specified in file [/tmp/tmp.Jc8sXZ7fnr/appengine-helloworld-python/app.yaml]. This field is not used by gcloud and should be removed.
ERROR: The version [1] declared in [/tmp/tmp.Jc8sXZ7fnr/appengine-helloworld-python/app.yaml] does not match the current gcloud version [20150424t121326].
ERROR: (gcloud.preview.app.deploy) Errors occurred while parsing the App Engine app configuration.