Skip to content Skip to sidebar Skip to footer

Django Settings -- Could Not Import Unipath

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 \--m

Solution 1:

It seems like I figured out the problem. The think was that I did a lot of mess. I had django and other apps installed globaly (long before I started developing the project). Then I installed virtualenvwrapper and created virtualenv. Working in the virtualenv I installed the required dependencies and the django. But when I was trying to run that I ran the globally installed version of django. As a result there were some incompatibilities. After I uninstalled global packages, everithing is ok.

How I figured out it? Thanks a lot to Jeff Knup and his post Starting a Django 1.4 Project the Right Way. I walked through the described steps and when I ran

(my-virtualenv)$ which django-admin.py

it showed me the following path:

/usr/local/bin/django-admin

while it should have:

$HOME/.virtualenvs/

that was a sign that something is wrong.

Thanks a lot for everybody for trying to help me.

Solution 2:

add file __init__.py to settings directory

Post a Comment for "Django Settings -- Could Not Import Unipath"