From e5a8c38fa1d9dae0bebc6b4671997b0f16e60913 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 20 Jul 2005 20:10:35 +0000 Subject: Added "philosophy" sections to tutorials so they can be styled differently git-svn-id: http://code.djangoproject.com/svn/django/trunk@250 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/tutorial01.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/tutorial01.txt') diff --git a/docs/tutorial01.txt b/docs/tutorial01.txt index 179f248806..45bc3dcf91 100644 --- a/docs/tutorial01.txt +++ b/docs/tutorial01.txt @@ -128,7 +128,9 @@ This directory structure will house the poll application. The first step in writing a database Web app in Django is to define your models -- essentially, your database layout, with additional metadata. - PHILOSOPHY: A model is the single, definitive source of data about your +.. admonition:: Philosophy + + A model is the single, definitive source of data about your data. It contains the essential fields and behaviors of the data you're storing. Django follows the `DRY Principle`_. The goal is to define your data model in one place and automatically derive things from it. @@ -195,7 +197,9 @@ is able to: But first we need to tell our project that the ``polls`` app is installed. - PHILOSOPHY: Django apps are "pluggable": You can use an app in multiple +.. adminition:: Philosophy + + Django apps are "pluggable": You can use an app in multiple projects, and you can distribute apps, because they're not tied to a given Django installation. -- cgit v1.3