Multi-Page Dash Application

こ雲淡風輕ζ 提交于 2019-12-05 18:17:49

You need to pass your flask app to your Dash instance. Like this.

app = dash.Dash(__name__, server=server)

So try importing server and include it as a parameter in your Dash instances in app1 and app2. Like so:

from app import server

app = dash.Dash(name='dash_1', sharing=True, 
url_base_pathname='/dash_1', csrf_protect=False, server=server)

app = dash.Dash(name='dash_2', sharing=True, 
url_base_pathname='/dash_2', csrf_protect=False, server=server)  

Hope it helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!