summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-04-11 02:59:48 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-04-11 02:59:48 +0000
commitf2aa710f134b2d15cf30df18720f0fc47c14d65b (patch)
tree80cbffc86293803e0c8e8c8c8ce1783449bff472 /docs
parent30c72faa9caeb58409c39c84ef538151c4b34041 (diff)
Added note to docs/templates.txt about {% extends %} needing to be the first tag in the template. Thanks, Chris Chamberlin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/templates.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt
index 636132a5aa..22c10caf15 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -210,6 +210,9 @@ is possible and, indeed, quite useful.
Here are some tips for working with inheritance:
+ * If you use ``{% extends %}`` in a template, it must be the first template
+ tag in that template.
+
* More ``{% block %}`` tags in your base templates are better. Remember,
child templates don't have to define all parent blocks, so you can fill
in reasonable defaults in a number of blocks, then only define the ones