Django on Apache on Snow Leopard, Part 2: install Django

This part isn’t as bad as installing mod_wsgi.

Go to the Django site and download Django. Take the file out of your Downloads folder and place it in your username folder.

Then open Terminal and type:

cd ~

This will take you to your username folder if you aren’t already there.

Then type:

tar xzvf Django-

And hit tab. This will show the latest version of the file you downloaded. For me it’s Django-1.3.tar.gz but it will change, so this method seems the easiest.

cd Django-1.3

sudo python setup.py install

Then wait. Django will install all of the files needed.

Now see if Django is working.

Turn on python.

python

Hit enter. You should see:

Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin

Then test for Django.

import django
django.VERSION

If it’s working, you will see something like:

(1, 3, 0, 'final', 0)