django

Django 1.4 for Ubuntu 11.10/12.04

Django is one of the coolest web application development framework, for Python developers. Django is a free and open source web development framework (released under BSD license). Django is easy to learn and allows Rapid Development with clean and pragmatic approach (in design).

Recently Django version 1.4 has released but in Ubuntu 12.04 beta or 11.10 or any older versions you can’t get the latest version from the official package repository (In 12.04 Beta 2, the latest version was 1.3). So if you want to try latest version of Django on Ubuntu, then you must install it either from a PPA or manually from source code or by other means.

django

How to Install Django in Ubuntu

Django 1.4 requires Python 2.5 or later but you shouldn’t wory about that because in Ubuntu, Python 2.7 is installed by default. Open a terminal and execute these commands (you need sudo privilege, just enter your login password) :

wget "http://www.djangoproject.com/download/1.4/tarball/"
tar xzvf Django-1.4.tar.gz
cd Django-1.4
sudo python setup.py install
  • Sundeep

    Thanks a lot! This is very straight forward and easy.

    • Anonymous

      I replaced the first two commands with simply downloading the latest version from the site, selecting “open” with archive manager, and extracting folder.

  • Jocelyn

    More straigthforward and cleaner is the ppa :

    sudo add-apt-repository ppa:dholbach/ppa
    sudo apt-get update
    sudo apt-get install python-django