I'm trying to run a django app but hitting this error when trying to load the page from the browser:
No module named views
The offending line in urls.py is
from landpage.views import txt
The file structure looks like this:
UPDATED
/myproject
/myproject
settings.py
manage.py
/landpage
__init__.py
models.py
urls.py
/views
__init__.py
landpage.py
txt.py
I've run the command python manage.py check --traceback
and gotten the result System check identified no issues (0 silenced).
I'm very new to django so I am not sure what else to check or what might be causing the issue. This project was just cloned. I have not changed anything.
UPDATE
Adding __init__.py
under the views
folder fixed this error. There is a new one now in landpage.py
at the line from landpage.models import LandpageTeamMember
which says No module named models
.