def make_web_app():
logging.config.dictConfig(config.LOGGING_CONFIG)
settings = {
'debug': constants.DEBUG,
'template_path': os.path.join(
os.path.dirname(__file__), "web", "templates"
),
'static_path': os.path.join(
os.path.dirname(__file__), 'web', 'static'
),
'default_handler_class ': BaseHandler
}
app = tornado.web.Application(url_handlers, **settings)
return app
评论列表
文章目录