- Three dashboards are created using a minimal structure (imports, instantiate an app, create a layout).
dashboard1,dashboard2, andhomeare our Dash apps, living separately in separate files.- The
app.pyfile is where the Flask app lives. - The dash apps are instantiated with
server=Falseandurl_base_pathname='/<dashboard_name>/'- This will create the apps without creating a server
- It will set the part of the app (the blueprint) that this will manage
/<dashboard_name>/
- The main Flask app will import those apps, and register them as blueprints with the standard
init_appmethod.
To run:
cd v01/
export FLASK_APP=app.py
flask run