The next step is to install Django. First we need a tool called pip, which is the current best package installer for Python. It makes installation of packages (i.e. software written in Python language) as easy as running a single command. To install pip, we need something called setuptools.
Go to
And download (assuming you have installed Python 2.7)
setuptools-0.6c11.win32-py2.7.exe
Run the installer, click Next a few times. (make sure you see C:\Python27)
After the installation of setuptools, open a command prompt window (type cmd in Run and Enter)
Enter the following command in sequence:
easy_install pip [Enter]
pip install django [Enter]
pip install south [Enter]
Note: Before you do this you need to set the environment variable as described in the previous guide!
You should see the following output:
C:\Users\kakarukeys>easy_install pip
Searching for pip
Best match: pip 1.0.2
ec6ff3f6d962696fe08d4c8264ad49
Processing pip-1.0.2.tar.gz
Running pip-1.0.2\setup.py -q bdist_egg --dist-dir c:\users\kakaru~1\appdata\loc
al\temp\easy_install-da3jmm\pip-1.0.2\egg-dist-tmp-g1xafu
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'do
cs\_build'
no previously-included directories found matching 'docs\_build\_sources'
Adding pip 1.0.2 to easy-install.pth file
Installing pip-script.py script to C:\Python27\Scripts
Installing pip.exe script to C:\Python27\Scripts
Installing pip.exe.manifest script to C:\Python27\Scripts
Installing pip-2.7.exe script to C:\Python27\Scripts
Installing pip-2.7.exe.manifest script to C:\Python27\Scripts
Installed c:\python27\lib\site-packages\pip-1.0.2-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
C:\Users\kakarukeys>pip install django
Downloading/unpacking django
Real name of requirement django is Django
Downloading Django-1.3.tar.gz (6.5Mb): 6.5Mb downloaded
Running setup.py egg_info for package django
Installing collected packages: django
Running setup.py install for django
Successfully installed django
Cleaning up...
C:\Users\kakarukeys>pip install south
Downloading/unpacking south
Real name of requirement south is South
Downloading South-0.7.3.tar.gz (70Kb): 70Kb downloaded
Running setup.py egg_info for package south
Installing collected packages: south
Running setup.py install for south
Successfully installed south
Cleaning up...
To test that your Django is installed properly, open a python shell, and perform the following to print the version of Django.
C:\Users\kakarukeys>python
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> dir(django)
['VERSION', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_
_path__', 'get_version']
>>> django.VERSION
(1, 3, 0, 'final', 0)
>>>
You have successfully installed Django 1.3 final.
You can install other packages in the same way, for example virtualenv, ipython, fabric, which you will come to know in future.
For now, Django and South are essential for the workshop.