Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #21378 -- Updated tutorial02 for how to override admin site hea…

  • Loading branch information...
commit 10a39debb2b95b41c8c4ec53247a3d1efe6c7f1b 1 parent 14c1872
@vajrasky vajrasky authored timgraham committed
Showing with 5 additions and 2 deletions.
  1. +5 −2 docs/intro/tutorial02.txt
7 docs/intro/tutorial02.txt
@@ -475,8 +475,11 @@ template directory in the source code of Django itself
import django
-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.
@claudep Collaborator
claudep added a note


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This template file contains lots of text like ``{% block branding %}``
and ``{{ title }}``. The ``{%`` and ``{{`` tags are part of Django's

0 comments on commit 10a39de

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