Monday, May 31, 2010

Re: ImportError: No module named django.core

Well, it seems that your python lib is at /usr/lib/python2.6/dist-packages:

> mx:~/webapps$ python -c "from distutils.sysconfig import
> get_python_lib; print get_python_lib()"
>
> /usr/lib/python2.6/dist-packages

but django is in "local" - /usr/local/lib/python2.6/dist-packages

> /usr/local/lib/python2.6/dist-packages/django/bin/django-admin.py

So have you tried adding /usr/local/lib/python2.6/dist-packages/
(directory that holds the django module) to your pythonpath?

Nuno

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment