【发布时间】:2012-12-18 02:59:33
【问题描述】:
当我创建我的 WSGIApplication 实例时,有什么方法可以将参数传递给 RequestHandler 对象?
我是说
app = webapp2.WSGIApplication([
('/', MainHandler),
('/route1', Handler1),
('/route2', Handler2)
], debug=True)
是否可以将一些参数传递给MainHandler、Handler1 或Handler2?
提前致谢
【问题讨论】:
-
你想要达到什么目的?
-
基本上,我想为多条路线使用一个处理程序。我认为您的回复正是我想要的。
标签: google-app-engine python-2.7 webapp2