This kind of error generally occurs when you try to import a module thinking of it as a function and call it. So in Python, a module is a .py file. Packages(directories) can also be considered as modules.
Suppose there is a
create.py file. In that file there is a function like this:
#inside create.py
def create():
pass
Now there is another code like:
#inside main.py file
import create
create()
Here, create refers to create.py, so create.create() would work here.
But it will give an error if the create.py is called as a function. So, to overcome this situation we have to do the following
from create import create
create()