Thursday, October 27, 2011

Re: No module named django after upgrade to os x Lion

Hello Angelika,

As a test you may want to try the defaults command ( for more info "$ man defaults" and/or google "mac os x defaults" ) to see if your Django install is still in the site-packages of an older version of python.  Try something like this on the command line...

$ defaults write com.apple.versioner.python Version 2.6

    ( or 2.5, 2.4, etc depending on which version of Python you were using before ).

Log out and back into your shell.

$ python

>>> import django

Let us know what you find.

In the end though you may just want to reinstall Django into the current version of the Apple supplied "current" version of Python for Lion ( 2.7.x ),  If you did the above test, just run the defaults command with 2.7 and log out/in, etc.  Then do your Django install.  Keep in mind that the older Django might still be hanging around in the old location so if your're concerned about disk space, you may want to attempt removal.  Otherwise it shouldn't cause a problem.

Toodle-looooooooooo............
creecode

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/3bOHiiwStyMJ.
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