webapp2.Route with optional leading part
问题 I am learning the webapp2 framework with its powerful Route mechanism. My application is supposed to accept URIs like these: /poll/abc-123 /poll/abc-123/ /poll/abc-123/vote/ # post new vote /poll/abc-123/vote/456 # view/update a vote Polls may optionally be organized into categories, so all the above should work also like this: /mycategory/poll/abc-123 /mycategory/poll/abc-123/ /mycategory/poll/abc-123/vote/ /mycategory/poll/abc-123/vote/456 My incorrect configuration: app = webapp2