Existing environmental conditions are: The operating system is Ubuntu Linux, and it has Python (version 2.6.5). If you don't have Python installed on your system, you'll need to download and install Python yourself.
By looking at the various versions of Django, I found that only 1.6.8 of the most recent Django releases were able to match the latest Django release version in the current Python 2.6.5. Therefore, decide to choose the Django 1.6.8 as the installation object.
Next, we go to https://www.djangoproject.com/download/to download django-1.6.8.tar.gz.
Then, copy the following command to complete the Django installation:
1.tar XZVF django-1.6.8.tar.gz
2.CD django-*
3.sudo python setup.py Install
At this point, the installation is complete.
We can check if the installation version is correct:
To view the Django version:
root@danny:/mnt/test/django-1.6.8# python
Python 2.6.5 (r265:79063, APR 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.
>>> Import Django
>>> Django. VERSION
(1, 6, 8, ' final ', 0)
>>>
Installation location:
root@danny:/ls/usr/local/bin/*.py
/usr/local/bin/django-admin.py