Using flask and DispatcherMiddleware to run multiple dash apps

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 for more details and a simple example.