Django

Code

Changeset 250

Show
Ignore:
Timestamp:
07/20/05 15:10:35 (3 years ago)
Author:
jacob
Message:

Added "philosophy" sections to tutorials so they can be styled differently

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/tutorial01.txt

    r247 r250  
    129129-- essentially, your database layout, with additional metadata. 
    130130 
    131    PHILOSOPHY: A model is the single, definitive source of data about your 
     131.. admonition:: Philosophy 
     132    
     133   A model is the single, definitive source of data about your 
    132134   data. It contains the essential fields and behaviors of the data you're 
    133135   storing. Django follows the `DRY Principle`_. The goal is to define your 
     
    196198But first we need to tell our project that the ``polls`` app is installed. 
    197199 
    198    PHILOSOPHY: Django apps are "pluggable": You can use an app in multiple 
     200.. adminition:: Philosophy 
     201 
     202   Django apps are "pluggable": You can use an app in multiple 
    199203   projects, and you can distribute apps, because they're not tied to a given 
    200204   Django installation. 
  • django/trunk/docs/tutorial02.txt

    r247 r250  
    1010.. _Tutorial 1: http://www.djangoproject.com/documentation/tutorial1/ 
    1111 
    12 Philosophy 
    13 ========== 
    14  
    15 Generating admin sites for your staff or clients to add, change and delete 
    16 content is tedious work that doesn't require much creativity. For that reason, 
    17 Django entirely automates creation of admin interfaces for models. 
    18  
    19 Django was written in a newsroom environment, with a very clear separation 
    20 between "content publishers" and the "public" site. Site managers use the 
    21 system to add news stories, events, sports scores, etc., and that content is 
    22 displayed on the public site. Django solves the problem of creating a unified 
    23 interface for site administrators to edit content. 
    24  
    25 The admin isn't necessarily intended to be used by site visitors; it's for site 
    26 managers. 
     12.. admonition:: Philosophy 
     13     
     14    Generating admin sites for your staff or clients to add, change and delete 
     15    content is tedious work that doesn't require much creativity. For that reason, 
     16    Django entirely automates creation of admin interfaces for models. 
     17     
     18    Django was written in a newsroom environment, with a very clear separation 
     19    between "content publishers" and the "public" site. Site managers use the 
     20    system to add news stories, events, sports scores, etc., and that content is 
     21    displayed on the public site. Django solves the problem of creating a unified 
     22    interface for site administrators to edit content. 
     23     
     24    The admin isn't necessarily intended to be used by site visitors; it's for site 
     25    managers. 
    2726 
    2827Start the development server