Web apps in Python with Django

Introduction

View = URL (callback function) -> data

Template = how data is presented in the UI

Controller = Framework itself

Setup

Install Python (2.5+ is recommended, as it includes SQLite so you don't need to bother installing a database to get started)

Download and untar the latest Django package

Open a terminal window, and type: setup.py install

In Windows, add this to the PATH env't variable: C:\Python25\Lib\site-packages\django\bin. You might need to reboot for Windows to take notice.

Programming

C:\MyStuff\django>C:\Python25\Lib\site-packages\django\bin\django-admin.py startproject mysite

A basic site includes:

python manage.py runserver.

 

Resources