Forums

ModuleNotFoundError: No module named 'app'

Im getting this error no matter what i do this is my file folder structure

SNAPCHAT
│
├── static
│   ├── css
│   │   ├── snapchat.otf
│   │   └── style.css
│   ├── images
│   │   ├── snap.jpg
│   │   └── snap.png
│   └── templates
│       └── login.html
│
├── app.py
├── requirements.txt
└── users.db

and in my app.py

app = Flask(__name__)
# some more code ...
enter code here

and wsgi file looks something like this

from app import app as application

what should i do to avoid this error

Is the path in project_home in your wsgi file correct?