I've created an application inside my django project called SeedData. I've added then a file called import_data.py where I will be reading csv files and adding them to my database.
-SeedData
--__pycache__
--migrations
--__init__.py
--admin.py
--apps.py
--import_data.py
-- etc..
But whenever i do the following:
from Product.models import Product
from Category.models import Category
from SubCategory.models import SubCategory
from Brand.models import Brand
import pandas as pd
I get this error
File "C:\Users\...\SeedData\import_data.py", line 9, in <module>
from Product.models import Product
ModuleNotFoundError: No module named 'Product'
It's the same for Category, SubCategory and Brand. I'd also like to say that the project is fully functional and all the mentioned projects above works perfectly fine.