I generate a django project and its directory structure is like the following:
-myproject
--__init__.py
--settings.py
--rooturls.py
--dbUtils.py
--app1
---__init__.py
---views.py
---urls.py
--app2
---__init__.py
---views.py
---urls.py
I want to import dbUtils in my apps , so I configure in my settings.py:
PROJECT_ROOT = os.path.dirname(__file__)
sys.path.insert(0, PROJECT_ROOT)
However, the program still can't find the moudle.
-myproject
--__init__.py
--settings.py
--rooturls.py
--dbUtils.py
--app1
---__init__.py
---views.py
---urls.py
--app2
---__init__.py
---views.py
---urls.py
I want to import dbUtils in my apps , so I configure in my settings.py:
PROJECT_ROOT = os.path.dirname(__file__)
sys.path.insert(0, PROJECT_ROOT)
However, the program still can't find the moudle.
