summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVajrasky Kok <sky.kok@speaklikeaking.com>2013-11-09 18:27:37 +0800
committerTim Graham <timograham@gmail.com>2013-11-09 07:18:46 -0500
commit10a39debb2b95b41c8c4ec53247a3d1efe6c7f1b (patch)
tree2ffc9f4ed7913e81854e8a0b553db37d4df86778
parent14c1872d29a662689a316ef9ab1ccdd82d3ca906 (diff)
Fixed #21378 -- Updated tutorial02 for how to override admin site header.
-rw-r--r--docs/intro/tutorial02.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index 6d0d50ed27..74a6752188 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -475,8 +475,11 @@ template directory in the source code of Django itself
import django
print(django.__path__)"
-Then, just edit the file and replace the generic Django text with your own
-site's name as you see fit.
+Then, just edit the file and replace ``{{ site_header }}`` with your own
+site's name as you see fit. We use this approach to teach you how to override
+templates. In an actual project, you would probably use the
+:attr:`django.contrib.admin.AdminSite.site_header` attribute to more easily
+make this paritcular customization.
This template file contains lots of text like ``{% block branding %}``
and ``{{ title }}``. The ``{%`` and ``{{`` tags are part of Django's