This is the recommended way to install Django.
Install pip. The easiest is to use the standalone pip installer. If your distribution already has pip installed, you might need to update it if it’s outdated. (If it’s outdated, you’ll know because installation won’t work.)
Take a look at virtualenv and virtualenvwrapper. These tools provide isolated Python environments, which are more practical than installing packages systemwide. It's highly recommended to install django in the virtualenv. Virtualenv allows installing packages without administrator privileges and also prevent collision between different versions of python.
If you have installed and set up the virtualenv, you can simply type pip install django after activating the virtualenv. This will install django in the virtualenv's site- packages directory. (No need to use sudo in this case).
If you don't want to use virtualenv (not recommended), then for Linux, Mac OS X or some other flavor of Unix, enter the command sudo pip install Djangoat the shell prompt. If you’re using Windows, start a command shell with administrator privileges and run the command pip install Django. This will install Django in your Python installation’s site-packagesdirectory.
Tracking Django development
If you decide to use the latest development version of Django, you’ll want to pay close attention to the development timeline, and you’ll want to keep an eye on the release notes for the upcoming release. This will help you stay on top of any new features you might want to use, as well as any changes you’ll need to make to your code when updating your copy of Django. (For stable releases, any necessary changes are documented in the release notes.)
If you’d like to be able to update your Django code occasionally with the latest bug fixes and improvements, follow these instructions:
Make sure that you have Git installed and that you can run its commands from a shell. (Enter git help at a shell prompt to test this.)
Check out Django’s main development branch (the ‘trunk’ or ‘master’) like so:
$git clone git://github.com/django/django.git django-trunk
This will create a directory django-trunk in your current directory.
Make sure that the Python interpreter can load Django’s code. The most convenient way to do this is to install virtualenv and then use pip. Take a look at how to install and setup the virtualenv here.
After setting up and activating the virtualenv, type the following command.
$pip install -e django-trunk/
(If not using a virtualenv you have to use sudo pip install -e django-trunk/ but its not recommended)
This will make Django’s code importable, and will also make the django-admin utility command available. In other words, you’re all set!
If you don’t have pip available, see the alternative instructions for installing the development version without pip.
Warning
Don’t run sudo python setup.py install, because you’ve already carried out the equivalent actions in step 3.
When you want to update your copy of the Django source code, just run the command git pull from within thedjango-trunk directory. When you do this, Git will automatically download any changes.
-Anjul
How do I represent the changes the I made in the documentation, I created a branch of the ticket on my local django repository but now should I create a .txt file with the changes or create two new .txt files, one representing the original documentation and other representing the edited version and then share the "diff" file of the two ?