tornado URL 的命名和重定向
使用 tornado.web 下的 url 函数可以为路由添加 name 属性,原有功能不变
from tornado.web import Application, url
url(r'/', views.HelloWorld, name='helloworld') # 为路由起一个名字 'helloworld'
继承 RequestHandler 构建的视图类自带 reverse_url() 可根据路由的 name 来找到路由
from tornado.</