Now, let's get started...
- Register in http://appengine.google.com/ (follow the step, including activation)
- Download and run python 2.5.4 from http://www.python.org/download/releases/2.5.4/
- Download and run google SDK from http://code.google.com/appengine/downloads.html
- Create a new folder named helloworld in Google App Engine
- Create a helloworld.py file, with the code:
print 'Content-Type: text/plain'
print ''
print 'hello, world' - Create a app.yaml file with the code:
application: helloworld
version: 1
runtime: python
api_version: 1
handlers:
- url: /.*
script: helloworld.py - Open command prompt, go to google_appengine/dev_appserver.py helloworld/
- Run http://localhost:8080/ on the web browser
- To close the command prompt, press Ctrl-c or just close it
- Go to http://appengine.google.com/ again, and click on create an application button (Remember your application identifier name)
- Edit the app.yaml file, and change the value of application: to your application identifier name (originally helloworld)
- To upload, run the command google_appengine/appcfg.py update helloworld/ in command prompt
- To check, go to http://application identifier name.appspot.com
- To learn more. go to http://code.google.com/appengine/docs/python/gettingstarted/helloworld.html
I copied everything precisely but I received this error:
ReplyDeleteH:\Program Files\Google\google_appengine>dev_appserver.py helloworld/
ERROR:root:Application configuration file missing an 'api_version' value:
helloworld/app.yaml
Any ideas?