summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial02.txt
diff options
context:
space:
mode:
authorCollin Anderson <cmawebsite@gmail.com>2014-12-26 16:48:18 -0600
committerTim Graham <timograham@gmail.com>2014-12-26 18:28:47 -0500
commit0821b3d53ccd575de92ed679d173d779e1ad5acd (patch)
treedd6033c4f2d3f30a3162309c4aa60ccf1a845e23 /docs/intro/tutorial02.txt
parentc2e419c26781b88f2b34b445f450b735267155b0 (diff)
Clarified custom header instructions in tutorial 2.
Diffstat (limited to 'docs/intro/tutorial02.txt')
-rw-r--r--docs/intro/tutorial02.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index d91ca76738..ae32a448e9 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -519,11 +519,13 @@ template directory in the source code of Django itself
Then, just edit the file and replace
``{{ site_header|default:_('Django administration') }}`` (including the curly
braces) with your own site's name as you see fit. You should end up with
-a line like:
+a section of code like:
.. code-block:: html+django
+ {% block branding %}
<h1 id="site-name"><a href="{% url 'admin:index' %}">Polls Administration</a></h1>
+ {% endblock %}
We use this approach to teach you how to override templates. In an actual
project, you would probably use