I have a Django project located at /var/django/project/ where /var/django/ is in the PATH
within that project I have:
___init__.py
manage.py
utils/
__init__.py
tools.py
utils/__init__.py
contains a function named get_preview
utils/tools.py
contains a function named get_related
How can utils/__init__.py
import get_related
from utils/tools.py
?
How can utils/tools.py
import get_preview
from utils/__init_.py
?
I have tried relative imports as well as static imports but seem to get an error in tools.py
when I try to from project.utils import get_preview