Google App Engine Your First App

Create a directory that hold your application (application directory):

mkdir helloworld

Create the handler script:

vim helloworld/helloworld.py
print 'Content-Type: text/plain'
print ''
print 'Hello, world!'

Create app.yaml:

vim helloworld/app.yaml
application: helloworld
version: 1
runtime: python
api_version: 1

handlers:
- url: /.*
  script: helloworld.py

To start the development server:

C:\
dev_appserver.py --clear_datastore accessiblebrain/

To access the application: http://localhost:8080/

You can leave the web server running while you develop your application. The web server knows to watch for changes in your source files and reload them if necessary.

page_revision: 2, last_edited: 1228856684|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License