Changeset 50
- Timestamp:
- 07/15/05 10:57:46 (3 years ago)
- Files:
-
- django/trunk/docs/admin_css.txt (added)
- django/trunk/docs/overview.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/overview.txt
r49 r50 1 =============== 2 Django overview3 =============== 1 ================== 2 Django at a glance 3 ================== 4 4 5 5 Because Django was developed in a fast-paced newsroom environment, it was … … 18 18 19 19 Start by describing your database layout in Python code. Django's data-model API 20 offers many rich ways of representing your models —so far, it's been20 offers many rich ways of representing your models -- so far, it's been 21 21 solving two years' worth of database-schema problems. Here's a quick example:: 22 22 … … 128 128 129 129 Once your models are defined, Django can automatically create an administrative 130 interface —a Web site that lets authenticated users add, change and130 interface -- a Web site that lets authenticated users add, change and 131 131 delete objects. It's as easy as adding an extra admin attribute to your model 132 132 classes:: … … 184 184 185 185 Once one of the regexes matches, Django imports and calls the given view, which 186 is a simple Python function. Each view gets passed a request object —186 is a simple Python function. Each view gets passed a request object -- 187 187 which contains request metadata and lets you access GET and POST data as simple 188 dictionaries —and the values captured in the regex, via keyword188 dictionaries -- and the values captured in the regex, via keyword 189 189 arguments. 190 190 … … 283 283 Simplistically, it defines the look-and-feel of the site (with the site's logo), 284 284 and provides "holes" for child templates to fill. This makes a site redesign as 285 easy as changing a single file —the base template.285 easy as changing a single file -- the base template. 286 286 287 287 Note that you don't have to use Django's template system if you prefer another … … 290 290 have to use Django's API, either. You can use another database abstraction 291 291 layer, you can read XML files, you can read files off disk, or anything you 292 want. Each piece of Django — models, views, templates —is decoupled292 want. Each piece of Django -- models, views, templates -- is decoupled 293 293 from the next. 294 294 … … 302 302 * An RSS framework that makes creating RSS feeds as easy as writing a 303 303 small Python class. 304 * More sexy automatically-generated admin features —this overview barely304 * More sexy automatically-generated admin features -- this overview barely 305 305 scratched the surface 306 306
