119 | | When you're creating generally a database driven app, the first thing you do is you create table statements. Create a table "blog entries" that has a headline varhcar entry, body, then the pub date. Well, in Django how you would represent that is, instead of in SQL, you would use a Python class. It looks very similar. The headline is just an attribute of that class, the body is another attribute and the pub_date is another attribute. |
| 119 | When you're creating generally a database driven app, the first thing you do is you create table statements. Create a table "blog entries" that has a headline varchar entry, body, then the pub date. Well, in Django how you would represent that is, instead of in SQL, you would use a Python class. It looks very similar. The headline is just an attribute of that class, the body is another attribute and the pub_date is another attribute. |