Aug 022009

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

Posted by weboom at 4:39 am Tagged with: , , , ,
Jun 262009

At settings.py
DATABASE_ENGINE = ’sqlite3′
DATABASE_NAME = ‘myblogsite.db’

Posted by weboom at 6:56 am Tagged with: ,
Switch to our mobile site
Top Footer