web_app.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:webspider 作者: GuozhuHe 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号