# Deploying Dash to PythonAnywhere

**URL:** <https://community.plotly.com/t/deploying-dash-to-pythonanywhere/15680>\
**Category:** Dash Python\
**Created:** [November 15, 2018, 7:36pm UTC](https://community.plotly.com/t/deploying-dash-to-pythonanywhere/15680 "2018-11-15T19:36:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris369](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@Chris369](https://community.plotly.com/u/Chris369)\
**Post date:** [November 15, 2018, 7:36pm UTC](https://community.plotly.com/t/deploying-dash-to-pythonanywhere/15680/1 "2018-11-15T19:36:01Z")

</div>

Hi

Hope someone can help me here - I have a dashboard that works fine on my computer and I’m trying to deploy it to pythonanywhere.

My WGSI file on python anywhere looks like this:

```
import sys

# add your project directory to the sys.path
project_home = u'/home/chris369/mysite'
if project_home not in sys.path:
sys.path = [project_home] + sys.path

# import flask app but need to call it "application" for WSGI to work
from dashboard1 import app
application = app.server

```

And what I think are the relevant bits from dashboard1.py are:

```
app = dash.Dash()
server = app.server

<<<<< dash stuff >>>>>

if __name__ == ' __main__':
app.run_server()

```

I have done a fair amount of Googling and see similar issues but I’ve tried multiple suggestions and just not getting it?

Any help on this would be greatly appreciated!

Thanks

Chris

---

<div class="post-metadata">

**Author:** ![Asifkhan](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Asifkhan](https://community.plotly.com/u/Asifkhan)\
**Post date:** [October 19, 2020, 1:16pm UTC](https://community.plotly.com/t/deploying-dash-to-pythonanywhere/15680/2 "2020-10-19T13:16:30Z")

</div>

i am having the same issue

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [October 19, 2020, 2:13pm UTC](https://community.plotly.com/t/deploying-dash-to-pythonanywhere/15680/3 "2020-10-19T14:13:48Z")

</div>

Hi @Asifkhan

The WGSI file looks correct in the OP.

Do you see any errors in the log files?
