I'm working on a django project that requires me to import code from another package. For exmaple, in my "home" app, I'm import from the "users" app. In my index.py view in the home app, I'm using from project.users import services
. Running this from a python shell works fine, however, if I try to run python3 manage.py runserver
, I get the error ModuleNotFoundError: No module named 'project.users'
. I tried adding my project directory and its parent to my sys.path, however, nothing changes. I also tried using a different machine and a venv with no success. How would I be able to fix this?
Edit: I also tried running from project.users import services
from the django shell (python3 manage.py shell
) and I get the same import error.