I'm trying to import a class from a file, but I can't find the right syntax in Visual Studio Code :i
My structure:
└── src
├── common
│ ├── database.py
│
└── models
├── admin
├──admin.py
In admin.py, I need to import a class called Database
, which is located in database.py. My solution would be:
from src.common.database import Database
But then I get this error:
ModuleNotFoundError: No module named 'src'