"Loading..." when opening localhost

Solve the problem by Deploy Dash on apache server [solved!]

I just add these lines after app construction:

    app = dash.Dash(
        __name__,
        server=server,
        external_stylesheets=[dbc.themes.BOOTSTRAP],
        # requests_pathname_prefix='/swatviewer/' # defining here will not work
    )
    
    app.config.update({'requests_pathname_prefix': '/<appname>/'})
1 Like