Hi, I get this error while trying to deploy the app on pit66.eu.pythonanywhere.com:
2023-03-07 09:47:53,808: ***************************************************
2023-03-07 09:47:55,485: Error running WSGI application
2023-03-07 09:47:55,485: AttributeError: 'Flask' object has no attribute 'server'
2023-03-07 09:47:55,486: File "/var/www/pit66_eu_pythonanywhere_com_wsgi.py", line 18, in <module>
2023-03-07 09:47:55,486: application = app.server
2023-03-07 09:47:55,486: ***************************************************
My app is called app8.py and I have changed the wsgi-file:
import sys
project_home = '/home/pit66/dash'
if project_home not in sys.path:
sys.path = [project_home] + sys.path
from app8 import app
application = app.server
From the tutorials I have seen this should do the job. I even set up a virtual environment on PA, but to no avail. Maybe I do not see the forest for the trees. Any help would be appreciated. Thanks!
[edit by admin: formatting]