def __init__(self): # Navigator navigator = Navigator() handlers = navigator.get_handlers() # Resources settings = dict( template_path = os.path.join(os.path.dirname(__file__), options.templates), static_path = os.path.join(os.path.dirname(__file__), options.static), # 指定 static path debug = True # TODO: Comment this when the site is done ) tornado.web.Application.__init__(self, handlers, **settings)