
Django is a framework for building webbased applications that is written in Python. Django applications are normally installed on linux machines. However many developers want to develop on windows and later deploy to linux (don’t ask me for the reasons, but my last two employers did this). In this article I will show you how to start with Django on Windows.
The steps to follow are:
Step 1: Install Python on Windows
Go to http://www.python.org/download/releases/ and download one of the Python 2.5.6. This tutorial will probably work with one of the other 2.x versions, too. Execute the file to install python.
Step 2: Install setuptools
Go to http://pypi.python.org/pypi/setuptools and scroll down to the download section near the end of that page. Download the .exe file that matches your Python version. So if you downloaded Python 2.5.6 in step 1 you should choose setuptools-0.6c11.win32-py2.5.exe. If you had Python 2.6 instead you should choose setuptools-0.6c11.win32-py2.6.exe, and so on. After dowloading, install that, too.
Step 3: Install MySQL for Python
If you don’t intend to use MySQL you can skip this step. Otherwise go to http://sourceforge.net/projects/mysql-python/files/mysql-python/ and get the latest version which was MySQL-python-1.2.3.tar.gz when I checked that site last time. Unpack it and install it.
Step 4: Install Django
With the setuptools from step 2 it is easy to install Django. Open the command line and type
> easy_install django
That’s all. You have installed django on windows.