Installing Django From Source on Ubuntu 8.10
Brian Dailey is a LAMP-stack developer with a wide range of experience in the development world. Get in touch!
For more articles on the development trade, see the Blog.
First you'll need to install python.
sudo apt-get install python
Once Python is installed, download the tarball from the Django Project website. For this example I used version 1.0.2. You can download this file to your home directory.
cd wget http://www.djangoproject.com/download/1.0.2/tarball/ tar xzvf Django-1.0.2-final.tar.gz
Now we can just move this entire package to somewhere logical.
sudo mv Django-1.0.2-final /usr/local/lib/django-1.0.2/
Link to it from the Python site-packages directory, and create a link to the django-admin.py executable.
cd /usr/local/lib/django-1.0.2/ sudo ln -s `pwd`/django /usr/lib/python2.5/site-packages/django sudo ln -s `pwd`/django/bin/django-admin.py /usr/local/bin/
Test it by changing to your home directory and running django-admin!
$ django-admin.py --version 1.0.2 final