I am learning to program with python and I am having issues with importing from a module in a package. I have tested commenting off the jedi enabled part and it is not worki
This may seem like a hack but it actually work, this happens because of bad package structure
In you case try importing
from .vs_code.ecommerce import database
Now wherever you want to call the class constructor do this:
database.Database()
you can assign this to a variable and use it.