I have a file structure like so.
remindMe
│
│
├───remind_me_django
│ └───listings
│ models.py
│ __init__.py
│
└───scrapy
└───scrapy_project
│ items.py
│ __init__.py
│
└───spiders
I'm trying to import my models.py file into items.py but to no avail. When attempting to import into items.py, I get a ModuleNotFound error. Other suggestions say to add my directory to my path but that's been unsuccessful so far as well.
sys.path.append("C:\\Users\\Denze\\Projects\\remindMe\\remind_me_django\\listings")
from listings.models import Product
I've also tried:
from remind_me_django.listings import Product
The funny thing is with this import, if I right click on the import within VSCODE and go to it's definition, it opens up that modules init file, so VSCODE knows what I'm referencing but Python does not?