Hosting multiple Dash apps with uWSGI + Nginx

I had a similar error regarding the ‘Error loading layout’ with 404s occuring for _dash-dependencies and _dash-layout. I’m using a slightly different setup. But this was the code that fixed it for me.

# In order to work on shinyproxy (and perhaps other middleware)
app.config.supress_callback_exceptions = True  
app.config.update({  
    # remove the default of '/'
    'routes_pathname_prefix': '',

    # remove the default of '/'
    'requests_pathname_prefix': ''
})

I posted a blog about this yesterday, it might help you.

3 Likes