1

为什么我的应用程序 (appengine+python)PUT/DELETE在 localhost (response status code 200) 上工作但不在服务器 (appspot) 上工作 (response with status code 0) 在此处输入图像描述

谢谢。

应用程序.yaml

version: 1
runtime: python
api_version: 1

handlers:
- url: .*
  script: guestbook.py 

留言簿.py

class MainPage(webapp.RequestHandler):
  def put(self, id=None):
    self.response.out.write('put')
  def delete(self, id=None):
    self.response.out.write('delete')       
  def get(self):
    self.response.out.write('<html><body>') 

application = webapp.WSGIApplication([
  ('/', MainPage),
  ('/sign', Guestbook)
], debug=True)


def main():
  wsgiref.handlers.CGIHandler().run(application)
4

1 回答 1

0

应该是浏览器问题!它非常适合我本地/产品

于 2012-01-02T10:39:26.153 回答