I could not figure out what I'm doing wrong. Could you please help me? I have the following directory structure:
project-repository
\-- my-project
\--manage.py
\--my-project
\--__init__.py
\--urls.py
\--wsgi.py
\--settings
\--__init__.py
\--local.py
\--base.py
In the local.py
I import base.py
. In base.py
I have from unipath import Path
. When I try to run django-admin shell --settings=my-project.settings.local
it shows me an error:
Error: Could not import settings 'my-project.settings.local' (Is it on sys.path?): No module named unipath
When I do pip freeze
it shows me:
Unipath==0.2.1
and I can easily import it in python console. Also I have project-repository
and my-project
on PYTHONPATH.
Here is unipath.__file__
output:
/home/User/.virtualenvs/django.1.4/local/lib/python2.7/site-packages/unipath/__init__.pyc
And here is one of the lines from sys.path
output:
/home/User/.virtualenvs/django.1.4/local/lib/python2.7/site-packages
Could you please point me to what I'm doind wrong?