zootown/csci323 — pull request #18 by benjic (2014-09-03 03:34:29+00:00)
Title: Django models

I noticed that the models were not working as initially laid out. I made some changes to the code and have laid out the mechanisms below. I would delete any sqlite files you have currently.

Migrating

In order to build the models in the db the fixes in the branch had to be applied. PM @falkzach about the details. After the fixes were applied a python manage.py sqlall build the subsequent schema from model definitions and python manage.py syncdb builds the tables from the generated schema. At this point the models are functional.

Fixtures

For testing I added some dummy data. Using python manage.py loaddata initial.yaml will import the fixtures into the database.