Our Blog

0

After I upgraded my Mac OS to Mountain Lion, I immediately noticed Apache needed to be reconfigured (just as last time).
This link and this one too helped me out pretty much.

But after a while it was time to work locally with my favourite weapon of choice, Django.
Django seemed to be wiped away too, including PIP.

Below is how I tested and retrieved it, it might come handy when you’re in the same situation. See if it’s usefull for you:

# django installed?
$ python
>>> import django

# ..or..

# present in current python version's packages, find path
$ python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"

# what other python versions do you have?
$ python[tab][tab]

# perhaps django finds in another version
$ python2.5 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"

# if so, try..
$ python2.5 manage.py shell

## fresh django install ##

# install pip
$ sudo easy_install pip

# install django
$ sudo pip install Django

# test
$ python
>>> import django
>>> django.VERSION