Install Django

Being a Python Web framework, Django requires Python. Verify Python installation -

$ python --version ## Python 2.7.4

Install Django - download Django-1.5.1.tar.gz, then:

$ tar xzvf Django-1.5.1.tar.gz
$ cd Django-1.5.1
$ sudo python setup.py install

Verify Django installation in either way :-) (ctrl-d to quit the terminal)

$ python
Python 2.7.4 (default, Apr 19 2013, 18:28:01) 
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print(django.get_version())
1.5.1
$ python -c "import django; print(django.get_version())"

voila :-)

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License