Saturday, April 7, 2012

Upgrading django on a mac

I'm on a mac, running Mac OS X Version 10.5.8 (Leopard). I was running
django -r 13034 that I got from SVN. I am trying to upgrade to 1.4
from git. After I upgrade, python can no longer find django. Here's
what I did:

$ cd /usr/local/lib/python2.6/dist-packages
$ sudo mv django/ django-13034
$ sudo git clone https://github.com/django/django.git django
$ python
Python 2.6.7 (r267:88850, Jan 11 2012, 06:42:34)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named django

If I switch back:

$ sudo mv django django1.4
$ sudo mv django-13034/ django

It again finds it:

$ python
Python 2.6.7 (r267:88850, Jan 11 2012, 06:42:34)
[GCC 4.0.1 (Apple Inc. build 5490)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> ^D

Anyone know what's wrong?

--
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate