0

My project directory is

enter image description here

"app", "framework" and "models" directory are the places where i am writing my code and all these have __init__.py file.

Now i am trying to import the modules written in framework and models directory from python code whithin "app" directory.

from framework.request_handler import Shelf
from models.books import Books

However i am getting unresolved reference. Even the following fails.

from ..framework.request_handler import Shelf 
from ..models.books import Books

What am i doing wrong?

vkb
  • 458
  • 1
  • 7
  • 18

0 Answers0