My 5-step banana ice cream recipe got more reaction in one hour than my usual geeky posts in years. Maybe I should combine the two concepts! Or maybe not. Heck, I already like this title so here’s the geeky recipe: a decidedly imperfect recipe for getting my django project up and running on a fresh new install of windows.

Preparation time



  • latest stable python2.x:

  • latest stable setuptools:

    • … just to easy_install pip
  • (optional) latest stable Bazaar:

    • Because the django project is in Bazaar
    • … and it is my choice of VCS anyway
  • (optional) latest stable git:

    • Because of the awesome bash shell
  • (optional) putty:

    • for ssh, creating keys, and the key agent


  • (optional) Install putty, create ssh key with puttygen, save private and public keys, add to authorized_keys on repository server, start pagent, add the key to it.
  • Install python, install setuptools
  • Edit environmental variables:

    • Append to PATH: c:\python27;c:\python27\scripts
    • Set BZR_SSH=c:\program files\putty\plink.exe
  • (optional) Install git
  • Fire up the bash terminal (git bash or DOS command prompt):

    • easy_install pip
  • (optional) Install Bazaar, bzr co bzr+ssh://myserver/~/repos/project
  • Install Django using pip: pip install django==1.4 (use the version you need!)
  • Install dependencies of the Django project, typically listed in a file: pip install -r requirements.txt
  • Run in Django’s local server: python runserver

Best served in a modern browser like Chrome at http://localhost:7000/ Enjoy!

Variations for the more adventurous

  • Screw putty, use the openssh that comes with git bash
  • pip install virtualenv, create a virtual env and run Django inside it.

blog comments powered by Disqus