This tutorial is written for Django 1.7 and Python 3.2 or later. If the
Django version doesn’t match, you can refer to the tutorial for your version
of Django by using the version switcher at the bottom right corner of this
page, or update Django to the newest version. If you are still using Python
2.7, you will need to adjust the code samples slightly, as described in
comments.
This tutorial is written for Django 1.6 and Python 2.x. If the Django
version doesn’t match, you can refer to the tutorial for your version of
Django by using the version switcher at the bottom right corner of this page,
or update Django to the newest version. If you are using Python 3.x, be aware
that your code may need to differ from what is in the tutorial and you should
continue using the tutorial only if you know what you are doing with Python
3.x.
root@ubuntu1204:~# sudo apt-get install python-pip
root@ubuntu1204:~/Django-1.7# pip install django==1.6.5
Downloading/unpacking django==1.6.5
Downloading Django-1.6.5.tar.gz (6.6Mb): 6.6Mb downloaded
Running setup.py egg_info for package django
warning: no previously-included files matching '__pycache__' found under directory ''
warning: no previously-included files matching '.py[co]' found under directory '*'
Installing collected packages: django
Found existing installation: Django 1.7
Uninstalling Django:
Successfully uninstalled Django
Running setup.py install for django
changing mode of build/scripts-2.7/django-admin.py from 644 to 755
warning: no previously-included files matching '__pycache__' found under directory ''
warning: no previously-included files matching '.py[co]' found under directory '*'
changing mode of /usr/local/bin/django-admin.py to 755
Successfully installed django
Cleaning up...
If you previously installed Django using python setup.py install,
uninstalling is as simple as deleting the django directory from your Pythonsite-packages. To find the directory you need to remove, you can run the
following at your shell prompt (not the interactive Python prompt):