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!

  1. I think on 8.10 you can just:

    sudo apt-get install python-django

    and it will setup all the stuff

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

  3. 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


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close