• 刚刚做了个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)

     

     

  • 安装了最新的Python3.0

    发现dev_appserver起不来,google一番发现,python用2.5.2就OK啦