How to upgrade Django on ubuntu?

Viewed 26728

Not a Django developer. We initially installed Django from Ubuntu packages by typing apt-get install python-django. Now we need version 1.x - our version is 0.96.1 Could you advise an easy way to upgrade?

4 Answers

Easiest way to upgrade Django on Ububtu is to make use of the easy_install script provided by the python-setuptools package.

sudo apt-get install python-setuptools
sudo easy_install --upgrade django

If you really can't upgrade the Ubuntu package as suggested by Ludwik, you might want to consider installing the source directly. It's pretty easy, and is fully documented here.

One of the way is typing this command on console:

pip install --upgrade django

It looks like you've got a really old version of Ubuntu. Django 0.96.1 was distributed last time with Ubuntu 8.04. Official repositories for the most recent Ubuntu 9.10 includes Django 1.1.1, which is the most recent version of Django. You can upgrade Ubuntu or try to install the new .deb package in your old OS (although I can't promise that all dependencies will be met by Ubuntu 8.04).

Related