Hi Scott,

> I'm having an issue confirming that Django is installed properly. I
> did what the Django site said: "You can tell Django is installed by
> running the Python interactive interpreter and typing import django."
> So i typed in import django and got:
>
>>>> import django
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> ImportError: No module named django
>
> What does that mean? Anyone know why it doesn't find django module?

That generally means it can't find the django module as you suggest.  
Try this from the Python interpreter:

 >>> import sys
 >>> sys.path

That should give you a list something like the following:

['', '/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python26.zip', '/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6', '/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/plat-darwin', '/Library/Frameworks/Python.framework/Versions/ 
2.6/lib/python2.6/plat-mac', '/Library/Frameworks/Python.framework/ 
Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/Library/ 
Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/ 
Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib- 
old', '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ 
lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
python2.6/site-packages', '/Library/Frameworks/Python.framework/ 
Versions/2.6/lib/python2.6/site-packages/PIL']

In it you can see the directory "site-packages" if you then look in  
that directory (here is mine)...

Nicks-Computer:~ nick2$ ls '/Library/Frameworks/Python.framework/ 
Versions/2.6/lib/python2.6/site-packages'
MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg
PIL
PIL.pth
README
beancount
beancount-1.0-py2.6.egg-info
django

...you should be able to see your django installation. If not then it  
hasn't been installed properly and you'll need to give more info as to  
what steps you're taking, such as the output from the above. The basic  
idea is really only that the main django file (the one that contains  
eg contrib, auth, db, etc.) is in that site-packages directory and  
therefore findable.

Nick

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to