[英]appengine python `PUT/DELETE` working on localhost but not in server
Why my application (appengine+python) PUT/DELETE
working on localhost (response status code 200
) but not in server (appspot) (respone with status code 0
) 为什么我的应用程序(appengine + python)
PUT/DELETE
在本地主机(响应status code 200
)而不在服务器(应用程序)中工作( status code 0
响应)
Thanks. 谢谢。
app.yaml app.yaml
version: 1
runtime: python
api_version: 1
handlers:
- url: .*
script: guestbook.py
guestbook.py guestbook.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)
It should be a browser issue! 这应该是浏览器问题! It works perfectly for me local/prod
它非常适合我本地/产品
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.