assign flask server to dash app
![vishal](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n8225iFAC20F1D42BE9C51.png)
vishal
Partner, Dataiku DSS Core Designer, Registered Posts: 7 Partner
Locally we use
server = Flask(__name__) app = dash.Dash(__name__, server)
Is there a way to assign flask server to dash app?
Tagged:
Answers
-
Hi,
when you run a Dash webapp in DSS, DSS actually creates the Flask server and assigns it to the Dash app, exactly like you're doing. This means that as a DSS user you won't have access to the Flask server creation. What Flask options do you need to control?
-
I am trying to init SQLAlchemy,
and login manager from flask_login.
can I directly use server the way I can use app without instiating it? -
I found it.
All this while I was creating a flask instance like:server = Flask(__name__)
all I had to do was use it from app ie.,
server = app.server.
Thanks @fchataigner2
, your explanation helped!