Django for ISchoolers

Revision as of 07:47, 16 November 2011 by imported>Aldeka (Created page with 'Tutorial to build a Q & A website. = The basics = == Prerequisites == == Spec'ing this app == == Starting yer project == == Using version control == == Set up settings == …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Tutorial to build a Q & A website.

The basics

Prerequisites

Spec'ing this app

Starting yer project

Using version control

Set up settings

(skipping demonstration of magic git backup powers)

Projects v. apps -- what's the difference?

Starting yer app

Test-driven development, part one

(use provided tests.py file)

  1. Think
  2. Test
  3. Code
  4. Commit

M-V-C separation

urls.py

views.py

Databases and the ORM (or: finally something that HTML/CSS/JS couldn't do for you on its own)

models.py

Database migrations and South, part one

Let's add some data (via the Django shell)!

Database migrations and South, part two

Let's auto-populate some data (using a script in the shell)!

Views with actual data

Django templates 101

Hooking up views to our templates

Oh, CRUD!

Bonus points

Static files (aka: Django for designers)

AJAX and Django

Test-driven development, part two

(walk through how to write tests for a new feature)

Authentication and Users (and reusing apps)

Deploying to a real live server