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!