Changes between Version 3 and Version 4 of SnakesAndRubiesTranscript/DjangoPresentation


Ignore:
Timestamp:
02/15/2006 11:26:11 PM (10 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SnakesAndRubiesTranscript/DjangoPresentation

    v3 v4  
    117117When you do a Django app, the first thing - assuming it's database driven, because it doesn't necessarily have to use a database - the first thing you do is you design your database schema. Now if we're going to do a sample application for the purposes of this, we'll do a little blog. It wont be written by a cat, but pretend it is (Slide shows Ginger The Cat's Blog).
    118118
    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.
     119When 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.
    120120
    121121Slide shows:
Back to Top