diff options
| author | velis74 <jure.erznoznik@gmail.com> | 2014-09-22 15:40:11 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-09-22 15:22:25 -0400 |
| commit | 24aa85cea9d741fcbc288f12f59e22f1d05f79d7 (patch) | |
| tree | 4ee6c43eb0fac77564bdff3770b0cb21df4bdb58 /docs/intro/tutorial02.txt | |
| parent | 903d144d85f5d25c4968dc41bd5a5ea9434a9703 (diff) | |
Fixed #23535 -- Updated tutorial to account for default filter added in 5ea34f3f86.
Diffstat (limited to 'docs/intro/tutorial02.txt')
| -rw-r--r-- | docs/intro/tutorial02.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index 653090b6d6..42e895513a 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -511,11 +511,12 @@ template directory in the source code of Django itself import django print(django.__path__)" -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 particular customization. +Then, just edit the file and replace +``{{ site_header|default:_('Django administration') }}`` with your own site's +name as you see fit, e.g. ``{{ _('Polls administration') }}``. 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 particular customization. This template file contains lots of text like ``{% block branding %}`` and ``{{ title }}``. The ``{%`` and ``{{`` tags are part of Django's |
