I have problem importing one of my python fails into another python file. In my main.py fail I have:
from authentication import *
from models import *
They are in the same dir, all the files are python files and they are in same directory.
The error I get:
File "/Users/user/PycharmProjects/e_commerce_api/./main.py", line 4, in <module>
from authentication import *
File "/Users/user/PycharmProjects/e_commerce_api/./authentication.py", line 5, in <module>
from .models import User
ImportError: attempted relative import with no known parent package
I have tried to from .models import *
, and from .authentication import *
does not work too.