I am learning intra package references. I have a main package ecommerce, in which there are two sub-packages, shopping and customer. In shopping I have sales.py file, and in customer I have contact.py file.
The sales.py has
from ecommerce.customer import contact
It gives the error no module name ecommerce. But there is an app.py file in the main folder, which is not part of shopping and customer sub packages, and in this file the above import works fine.