# "Loading..." when opening localhost

**URL:** <https://community.plotly.com/t/loading-when-opening-localhost/7284>\
**Category:** Dash Python\
**Created:** [December 12, 2017, 4:15pm UTC](https://community.plotly.com/t/loading-when-opening-localhost/7284 "2017-12-12T16:15:59Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![luckymichael](https://avatars.discourse-cdn.com/v4/letter/l/ea5d25/32.png) [@luckymichael](https://community.plotly.com/u/luckymichael)\
**Post date:** [September 14, 2020, 6:25pm UTC](https://community.plotly.com/t/loading-when-opening-localhost/7284/22 "2020-09-14T18:25:00Z")

</div>

Solve the problem by [Deploy Dash on apache server [solved!]](https://community.plotly.com/t/deploy-dash-on-apache-server-solved/4855/18)

I just add these lines after app construction:

```auto
    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>/'})

```

---

_[View the full topic](https://community.plotly.com/t/loading-when-opening-localhost/7284)._
