From f2aa710f134b2d15cf30df18720f0fc47c14d65b Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 11 Apr 2006 02:59:48 +0000 Subject: [PATCH] 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 --- docs/templates.txt | 3 +++ 1 file changed, 3 insertions(+) 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