On Mon, Jul 8, 2013 at 12:10 PM, Yves S. Garret
<[email protected]> wrote:
> I've gone through the entire django install steps and when I fired up my
> Python shell
> (python 2.7.5, to be exact) and did import django, this is what I got:
>
>>>> import django
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named django
>
> sudo python setup.py install should have done it, yes?  If not, what am I
> missing?

What platform are you on? On my Mac when I was running 10.5 I had to
create this symlink:

ln -s /usr/local/lib/python2.6/dist-packages/django
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django

But I did not have to do that with 10.8 - there the install just worked.

On CentOS I also had to create a symlink:

ln -s /usr/lib/python2.6/dist-packages/django
/usr/lib/python2.6/site-packages/django

Those are the only 2 platforms I have experience with, so if you're on
something else I can't help.

You could try:

import sys
print sys.path

and see where it's searching.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to