Django model : DB

1. Each model : a single database table

2. each attribute of the model : a column in the database table

3. attribute name : the column’s name

4. type of field (e.g., CharField) : database column type (e.g., varchar)

5. instance of model : row in the database table

At settings.py

DATABASE_ENGINE = ‘sqlite3′
DATABASE_NAME = ‘myblogsite.db’

© 2011 Web Oom Suffusion theme by Sayontan Sinha
Switch to our mobile site
Top Footer