【发布时间】:2013-03-14 18:02:53
【问题描述】:
有没有人想出一种在 Google App Engine 中进行自动路由的优雅方法?我最终得到了很长的路线列表,即
urls = routes.HandlerPrefixRoute(h+'index_handler.',[RedirectRoute(r'/',handler='IndexHandler')]),...
我希望 example.com/blog 会自动路由到 blog 处理程序,example.com/blog/method 会自动路由到 blog.method 方法。
【问题讨论】:
标签: google-app-engine routing url-routing