使用App Engine的web应用框架刚刚起步,但我想不出有什么不对的:正则表达式 - 匹配所有不包含...(App引擎)
我的URL结构设置直到任何页面前缀为/ x /的地方。例如..
等等等等....
现在我希望能够匹配不前缀/ x /由另一个处理程序处理。这将是用户的页面。
EX:
http://site.com/user1
http://site.com/user2
这里是我的WSGI应用
application = webapp.WSGIApplication([
('/((?!/x/).)*$', Profile.ProfileMainHandler),
('/x', Misc.MainHandler),
('/x/', Misc.MainHandler),
('/x/videos', Videos.VideoHandler),
('/x/videos/add', Videos.VideoAddHandler),
# etc etc, many more to list...
这是为什么不工作?/x/etc的处理程序工作正常,但不是其他任何内容到Profile.ProfileMainHandler,它不匹配任何内容。
一如既往感谢您的耐心等待!