Using Django to Teach Databases
I’ve been trying using Django’s ORM to teach some database topics:
object-relational-mapping, foreign keys, automatically generated
intersection tables vs association tables (Django model “through”
attribute), forward and reverse engineering, and migrations. Here’s
a basic django model that I’ve been using in the class (SEIS
630). You can check
out the code but it’s better to go through the steps using
django-admin
and manage.py
.