Thanks for the reply.

"which python" returns: /opt/local/bin/python

"python -V" returns: Python 2.5.5

I know I've got the OSX default Pythons installed as well, but I've done my 
best to avoid running those.

Like I said in my first email, printing sys.path in the python prompt returns a 
big list of directories, including  
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages",
 which contains the django installation.

But when I run "print sys.modules", Django is not included. It doesnt make 
sense to me that Django isn't included in sys.modules even though it's 
installed in a dir listed by sys.path.

I'm a noob to both Python and Django so apologies if I'm missing something 
obvious.

=T=




On Mar 3, 2010, at 4:04 PM, Shawn Milochik wrote:

> Please post the results of these commands:
> 
> which python
> 
> python -V
> 
> 
> 
> 
> You can have different versions of Python installed (or even the same 
> version) in multiple places on your Mac. The most likely situation is that 
> when you're trying to actually run things you're using different version of 
> Python than the one that has Django install. your PYTHONPATH is only part of 
> the story, since packages on that path for one version of Python won't work 
> when you're running another Python version.
> 
> For bonus points, run Python at the command line and do these:
> 
> import sys
> sys.path
> 
> That will tell you where your current instance of Python is looking for 
> modules.
> 
> Shawn
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

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

Reply via email to