Tag Archives: django

Install Django on Ubuntu 8.10

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
To install it on your Ubuntu, follow the next steps:

1. Install python (if you have it installed, skip this step)

sudo apt-get install python

2. Download the tarball from the Django Project website. 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

3. Now we can just move this entire package to somewhere logical. You can move it anywhere you like, but remember to modify the links accordingly. I use /usr/local/lib/.

sudo mv Django-1.0.2-final/  /usr/local/lib/django-1.0.2/

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

5. Test it by changing to your home directory and running django-admin!

django-admin.py --version

You should see this:

1.0.2 final

6. Happy programming!