I drafted the changes in the current documentation regarding emphasizing 
the use of virtualenv. Have a look and any suggestions are welcome.

*Installing an official release with **pip**¶* 
<https://docs.djangoproject.com/en/dev/topics/install/#installing-an-official-release-with-pip>
 

This is the recommended way to install Django.

   1. 
   
   Install pip <https://pip.pypa.io/>. The easiest is to use the standalone 
   pip installer <https://pip.pypa.io/en/latest/installing.html#install-pip>. 
   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.)
   2. 
   
   Take a look at virtualenv <http://www.virtualenv.org/> and 
   virtualenvwrapper <http://virtualenvwrapper.readthedocs.org/en/latest/>. 
   These tools provide isolated Python environments, which are more practical 
   than installing packages systemwide. It's highly recommended to install 
   django in the virtualenv <http://www.virtualenv.org/>. Virtualenv allows 
   installing packages without administrator privileges and also prevent 
   collision between different versions of python. 
   3. 
   
   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 Django*at 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-packages*directory.
   


*Installing the development version**¶* 
<https://docs.djangoproject.com/en/dev/topics/install/#installing-the-development-version>
 

*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 
<https://code.djangoproject.com/timeline>, and you’ll want to keep an eye 
on the *release notes for the upcoming release* 
<https://docs.djangoproject.com/en/dev/releases/#development-release-notes>. 
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:

   1. 
   
   Make sure that you have Git <http://git-scm.com/> installed and that you 
   can run its commands from a shell. (Enter *git help* at a shell prompt 
   to test this.)
   2. 
   
   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.
   3. 
   
   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 
   <https://virtualenv.pypa.io/en/latest/installation.html>.
   
   After setting up and activating the virtualenv, type the following 
   command.
   
        *$*pip install -e django-trunk/
   
   (If not using a virtualenv <http://www.virtualenv.org/> 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 <https://pip.pypa.io/> available, see the 
   alternative instructions for installing the development version without 
   pip <https://docs.djangoproject.com/en/dev/topics/install/#id1>.
   
*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 the*django-trunk* directory. When you do 
this, Git will automatically download any changes.





-Anjul 


-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/0a74526f-92e4-4a9b-bb4e-0c0b8a13fab4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to