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.
- latest stable python2.x:
- latest stable
- … just to
- (optional) latest stable Bazaar:
- Because the django project is in Bazaar
- … and it is my choice of VCS anyway
- (optional) latest stable
- Because of the awesome bash shell
- (optional) putty:
- for ssh, creating keys, and the key agent
putty, create ssh key with
puttygen, save private and public keys, add to
authorized_keyson repository server, start
pagent, add the key to it.
- Edit environmental variables:
- Append to
- Append to
Fire up the bash terminal (git bash or DOS command prompt)
(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 manage.py runserver
Best served in a modern browser like Chrome at http://localhost:7000/ Enjoy!
Variations for the more adventurous
putty, use the
opensshthat comes with
pip install virtualenv, create a virtual env and run Django inside it.