Google App Engine 使ってみる 1回目
hello, world から。楽にできていいわ。
Download
# cd ~/Documents # wget http://googleappengine.googlecode.com/files/google_appengine_1.3.4.zip # unzip google_appengine_1.3.4.zip
webapp framework
参考: http://code.google.com/intl/ja/appengine/docs/python/gettingstarted/usingwebapp.html
- webapp.RequestHandler : 実際にリクエストを受け取ってResponseを返す
- webapp.WSGIApplication : URL → RequestHandler の対応づけをしてくれる
- run_wsgi_app : WSGIApplication を走らせる
気になったこと:
- webapp.WSGIApplication.run ではない
- sample コードが Google Python Style Guide(http://google-styleguide.googlecode.com/svn/trunk/pyguide.html) を厳密には守ってない (indent 幅は sample:2 style guide:4)