Anonymous user
Boston Python Workshop/Saturday/Web app project: Difference between revisions
Boston Python Workshop/Saturday/Web app project (view source)
Revision as of 15:05, 5 March 2011
, 13 years ago→Django Philosophy
imported>Paulproteus |
imported>Paulproteus |
||
Line 153:
In our simple poll app, we'll create two models: polls and choices. A poll has a question and a publication date. A choice has two fields: the text of the choice and a vote tally. Each choice is associated with a poll. (FIXME: Add image to Choice.)
These concepts are represented by
from django.db import models
|