Django for ISchoolers
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)
- Think
- Test
- Code
- 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)