What happened is that I have this three module in my project. I would love to make them visible to each other.
Here is the directory structure
MyProject > web > handlers.py > models > mymodel.py > utils > stringutils.py
What happened is that I have this three module in my project. I would love to make them visible to each other.
Here is the directory structure
MyProject > web > handlers.py > models > mymodel.py > utils > stringutils.py
I got it. I should've included __init__.py
inside the module, so it will visible to other modules of the project.
New directory structure is
MyProject
> web
> __init__.py
> handlers.py
> models
> __init__.py
mymodels.py
> utils
__init__.py
> utils.py
main.py
Now when I call handlers from the main.py, handlers can access models and utils.