Hello,GAE for Python

marshluca posted @ Jul 27, 2009 05:35:16 AM in RoR with tags python GAE app , 3242 阅读

1.Required for windows

    Python 2.5.x

    GAE SDK 1.1.5

2.create a directory named "helloworld" and create the files below in the directory.

(1)app.yaml

    application: marshluca
    version: 1
    runtime: python
    api_version: 1

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

(2)helloworld.py

    print 'Content-Type: text/plain'
    print ''
    print 'Hello, GAE and Hello Python!'

3.dev_appserver.py helloworld/

4.appcfg.py update helloworld/

5.visit the url http://marshluca.appspot.com/ and http://localhost:8080/

 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter