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!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Reddit
  • Twitter
  • email

3 Comments to “Install Django on Ubuntu 8.10”

  1. Vitaliy says:

    I think on 8.10 you can just:

    sudo apt-get install python-django

    and it will setup all the stuff

  2. cviorel says:

    Vitaliy, you are right. But if you want to have the latest version, you’ll use my method.
    Cheers!

  3. Lomar says:

    for me the “sudo apt-get install python-django” approach just failed, on ubuntu 9.04. anyway, its a great, understandable and working guide! keep up with the free work :p

Leave a comment