首页 > 解决方案 > 从包含路径参数的路径提供 Dash

问题描述

有没有人设法从相对和动态路径后面的烧瓶中提供破折号应用程序。我想从 /account//dashapp 提供仪表板,然后将其用作我的仪表板应用程序的上下文。

我发现了很多使用静态路径的例子,但不是动态路径。对于亲戚,我正在使用:

    dash_app.config.update({
        'routes_pathname_prefix': './',
        'requests_pathname_prefix': './'
    })

@app.route('/account/<int:account-id>/dashapp')

标签: flaskplotly-dash

解决方案


推荐阅读