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 setup.py 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):
c:\Django-0.96.1\django\bin

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>django-admin.py startproject mysite

that creates the directory with 4 python files

mysite/
__init__.py
manage.py
settings.py
urls.py


Then start the server that it comes with:

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

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


Now go to:
http://localhost:8000/

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!