有没有办法制作一个谷歌应用引擎处理程序来处理所有尚未指定的网址?
也许喜欢:
app = webapp2.WSGIApplication([
('/', MainHandler),
('/hello',HelloHandler),
('/bye',ByeHandler),
('for-everything-else',OtherHandler)
], debug=True)
答案 0 :(得分:2)
好吧,我自己找到了答案:
app = webapp2.WSGIApplication([
('/', MainHandler),
('/hello',HelloHandler),
('/bye',ByeHandler),
('/.*',OtherHandler)
], debug=True)