Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Deploying Dash to PythonAnywhere


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 are:

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

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

if __name__ == '__main__':

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!



i am having the same issue

Hi @Asifkhan

The WGSI file looks correct in the OP.

Do you see any errors in the log files?