I'm working on a project and I'm facing this issue.
i wanted to make an import from some folder but it always throws an exception. here is my files structure:
\myWebsite
\childWebsite
\importedClass
\myWebsite(same name as the parent)
\classThatCallsTheImportedClass
so my call is as following:
from myWebsite.childWebsite.importedClass import someFunction
However, it always throws an error: "No module named 'myWebsite.childWebsite'"
I discovered that when executing the call line, django checks the files inside the child "myWebsite" folder and hence it can't find the "importedClass". So, how i make it checks the parent "myWebsite"?