Forums

WSGI error

error messge reads "Error running WSGI application 2024-09-18 15:41:02,104: ModuleNotFoundError: No module named 'app' 2024-09-18 15:41:02,105: File "/var/www/secrec01_pythonanywhere_com_wsgi.py", line 16, in <module> 2024-09-18 15:41:02,105: from app import app as application # noqa"

We have a help page to help you to debug that here: https://help.pythonanywhere.com/pages/DebuggingImportError/

Thank you, but none of that was helpful.

Did you follow it? What did you find? What was confusing?

I have the same problem. I followed the directions to check sys.path but an error was returned command not found. So I have no options left. The larger issue is the error ImportError: cannot import name 'app' from 'my_app'

What exactly did you run and where did you run it?