Anonymous user
Boston Python Workshop/Saturday/Web app project: Difference between revisions
Boston Python Workshop/Saturday/Web app project (view source)
Revision as of 13:04, 5 March 2011
, 13 years ago→Philosophy
imported>Paulproteus |
imported>Paulproteus |
||
Line 146:
The first step in writing a database Web app in Django is to define your models -- essentially, your database layout, with additional metadata.
=== Django Philosophy ===
A model is the single, definitive source of data about your data. It contains the essential fields and behaviors of the data you're storing. Django follows the DRY ("Don't Repeat Yourself") Principle. The goal is to define your data model in one place and automatically derive things from it.
|