How to Install and Run Django on Windows (Vista)

/*--- holy mAcar00ns!! --- */

Download the Django file from the website.

It's tarred and gunzipped, so use 7-zip to extract it.

Put the extracted directory somewhere.

In your console, cd to the directory (Django-0.96.1 or whatever).

Run this command in the console:
python install

Start python by typing 'python' at the command line.

Then type:
>>> import django
>>> django.VERSION
(0, 96.099999999999994, None)

Add to your path (see my post about setting path in Vista):

You may need to restart console if the path doesn't update (if you changed it via windows see my blog post.)

Then do:
C:\django_projects> startproject mysite

that creates the directory with 4 python files


Then start the server that it comes with:

C:\django_projects\mysite>python runserver
Validating models...
0 errors found.

Django version 0.96.1, using settings 'mysite.settings'
Development server is running at
Quit the server with CTRL-BREAK.

Now go to:

Now you have Django on Windows!

Labels: , ,

all your bases ar--

ping moi pleeez

About this entry

pacman is coming

nuck nuck

e belong to us!