【发布时间】:2010-12-21 20:26:23
【问题描述】:
目前我有 foo.com/bar 路由到请求处理程序 Main。我还希望 foo.com/bar/id 路由到该请求处理程序(其中“id”是对象的 id)。
这是我尝试过的,但失败了:
application = webapp.WSGIApplication(
[('/bar', MainHandler),
(r'/bar/(.*)', MainHandler)],
debug=True)
我得到的错误是:
TypeError: get() takes exactly 1 argument (2 given)
【问题讨论】:
标签: python google-app-engine web-applications httpwebrequest