mirror of
https://github.com/django/django.git
synced 2025-08-18 17:50:58 +00:00
[1.7.x] Clarified custom header instructions in tutorial 2.
Backport of 0821b3d53c
from master
This commit is contained in:
parent
1173140dbf
commit
2af33a0719
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue