app.py 文件源码

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

项目:gocd-dashboard 作者: datasift 项目源码 文件源码
def debug_app(app):
    """Add the debug toolbar extension to the application."""
    app.jinja_env.undefined = jinja2.StrictUndefined

    try:
        import flask_debugtoolbar
    except ImportError:
        flask_debugtoolbar = None
    else:
        app.config['SECRET_KEY'] = 'debug-secret-key'
        flask_debugtoolbar.DebugToolbarExtension(app)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号