Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added "philosophy" sections to tutorials so they can be styled differ…

…ently

git-svn-id: http://code.djangoproject.com/svn/django/trunk@250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e5a8c38fa1d9dae0bebc6b4671997b0f16e60913 1 parent ec31445
Jacob Kaplan-Moss authored July 20, 2005
8  docs/tutorial01.txt
@@ -128,7 +128,9 @@ This directory structure will house the poll application.
128 128
 The first step in writing a database Web app in Django is to define your models
129 129
 -- essentially, your database layout, with additional metadata.
130 130
 
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
132 134
    data. It contains the essential fields and behaviors of the data you're
133 135
    storing. Django follows the `DRY Principle`_. The goal is to define your
134 136
    data model in one place and automatically derive things from it.
@@ -195,7 +197,9 @@ is able to:
195 197
 
196 198
 But first we need to tell our project that the ``polls`` app is installed.
197 199
 
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
199 203
    projects, and you can distribute apps, because they're not tied to a given
200 204
    Django installation.
201 205
 
29  docs/tutorial02.txt
@@ -9,21 +9,20 @@ application and will focus on Django's automatically-generated admin site.
9 9
 
10 10
 .. _Tutorial 1: http://www.djangoproject.com/documentation/tutorial1/
11 11
 
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.
27 26
 
28 27
 Start the development server
29 28
 ============================

0 notes on commit e5a8c38

Please sign in to comment.
Something went wrong with that request. Please try again.