Sunday, September 5, 2010

Installing Django on Windows

You hear about the the power of python and his framwork Django, you want to taste the joys of web development using Python technology?

Here's a quick step by step tutorial to install python and Django on your Windows PC:

  1. Download and install Python
  2. Modify The %PATH% environment variable:
    - Windows Vista & 7  :
    Start --> Control Panel --> System and maintenance --> System --> Advanced system settings --> Environment variables --> System variables --> Path
    -Windows XP :
    Start --> Control Panel --> Performance and maintenance --> System --> Advanced --> Environment variables --> System variables --> Path

    - add C:\Python27;C:\Python27\Lib\site-packages\django\bin to the value of the variable path
  3. Download the latest release of Django download page (Django-1.2.1.tar.gz).
  4. Untar the downloaded file, (You can use a GUI-based tool such as 7-zip)
  5. Open a prompt command and change into the directory created in step 4.
  6. Run the command "python setup.py install"
    django is installed
  7. Install Mysql, the easiest way is to use WampServer2 or XAMPP
  8. Installer pymysql
    see my tutorial here
Everything is now installed! You can start having fun with django: http://www.djangoproject.com/documentation/

No comments: