About Django:
Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Developed by a fast-moving online-news operation, Django was designed to handle two challenges: the intensive deadlines of a newsroom and the stringent requirements of the experienced Web developers who wrote it. It lets you build high-performing, elegant Web applications quickly.
Optional installations:
There are a number of optional packages that can be used with Django. Run the following command to install the optional packages.
[code]sudo aptitude install python-imaging python-pythonmagick python-markdown python-textile python-docutils[/code]
If you want more information about the package then use ‘show’ subcommand with the respective package name.
[code]aptitude show python-imaging[/code]
These packages are optional and frequently used. So it’s up to you if you want to use them with Django or not.
Installing Django with Aptitude:
To date, this is not the recommended way of installing Django as it comes with an older version. However, if you still want to follow this method, you can use this command
[code]sudo aptitude install python-django[/code]
Once it has download, you can check that Django is installed and working.
[code]django-admin[/code]
The prompt will show the line below, followed by a long set of options.
[code]Usage: django-admin subcommand [options] [args][/code]
Installing Django without Aptitude:
If you don’t want to use aptitude, then this is your best bet for installing Django. In this method, we will download the official stable release and install it manually.
[code]
wget https://www.djangoproject.com/download/1.4/tarball/
tar xzvf index.html
cd Django-1.4
sudo python setup.py install
[/code]
You can use this command to check that Django is installed and working
[code]django-admin.py[/code]
You should get below response, and it will be followed by a long set of options.
[code]Usage: django-admin subcommand [options] [args][/code]
Installing Django from the Git Repository:
If you are looking for the latest release of Django that supports all major features, then download the program through git.
Before you start, you need to download git:
[code]apt-get install git-core[/code]
Once it downloads, you can install Django:
[code]git clone https://github.com/django/django.git[/code]