Ticket #5097: overview.txt.diff
File overview.txt.diff, 1.3 KB (added by , 17 years ago) |
---|
-
overview.txt
54 54 ================== 55 55 56 56 With that, you've got a free, and rich, Python API to access your data. The API 57 is created on the fly : No code generation necessary::57 is created on the fly, no code generation necessary:: 58 58 59 59 >>> from mysite.models import Reporter, Article 60 60 … … 124 124 # Delete an object with delete(). 125 125 >>> r.delete() 126 126 127 A dynamic admin interface: It's not just scaffolding -- it's the whole house127 A dynamic admin interface: it's not just scaffolding -- it's the whole house 128 128 ============================================================================ 129 129 130 130 Once your models are defined, Django can automatically create a professional, … … 250 250 ``{% extends "base.html" %}`` does. It means "First load the template called 251 251 'base', which has defined a bunch of blocks, and fill the blocks with the 252 252 following blocks." In short, that lets you dramatically cut down on redundancy 253 in templates: Each template has to define only what's unique to that template.253 in templates: each template has to define only what's unique to that template. 254 254 255 255 Here's what the "base.html" template might look like:: 256 256