# Using flask and DispatcherMiddleware to run multiple dash apps

**URL:** <https://community.plotly.com/t/using-flask-and-dispatchermiddleware-to-run-multiple-dash-apps/54168>\
**Category:** Dash Python\
**Created:** [June 25, 2021, 6:14am UTC](https://community.plotly.com/t/using-flask-and-dispatchermiddleware-to-run-multiple-dash-apps/54168 "2021-06-25T06:14:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tcbegley](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@tcbegley](https://community.plotly.com/u/tcbegley)\
**Post date:** [June 25, 2021, 6:39am UTC](https://community.plotly.com/t/using-flask-and-dispatchermiddleware-to-run-multiple-dash-apps/54168/2 "2021-06-25T06:39:34Z")

</div>

You need to set `requests_pathname_prefix` when creating the dash apps so they try to load the JavaScript bundles from the correct place. Check out [this post](https://community.plotly.com/t/how-to-add-your-dash-app-to-flask/51870/2) for more details and a simple example.

---

_[View the full topic](https://community.plotly.com/t/using-flask-and-dispatchermiddleware-to-run-multiple-dash-apps/54168)._
