-
2008-12-17
GAE 去掉body里面的http头 - [=>尝试新玩意]
刚刚做了个hello,world应用,发现body里总是套着一个
Status: 200 OK Content-Type: text/html; charset=utf-8 Cache-Control: no-cache Content-Length: 49
找了半天,原来是自己白痴了
application = webapp.WSGIApplication(
[('/read', ReadRank)],
debug=True)
wsgiref.handlers.CGIHandler().run(application)
application2 = webapp.WSGIApplication(
[('/write', WriteRank)],
debug=True)
wsgiref.handlers.CGIHandler().run(application2)这里的问题,写成一条就没问题了。
application = webapp.WSGIApplication(
[('/read', ReadRank),('/write', WriteRank)],
debug=True)
wsgiref.handlers.CGIHandler().run(application) -
2008-12-16
Google App Engine 试用失败 - [=>尝试新玩意]
安装了最新的Python3.0
发现dev_appserver起不来,google一番发现,python用2.5.2就OK啦








