Ticket #23587: 23587.diff

File 23587.diff, 1.2 KB (added by Tim Graham, 10 years ago)
  • docs/intro/tutorial02.txt

    diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
    index 42e8955..8b144c6 100644
    a b template directory in the source code of Django itself  
    512512        print(django.__path__)"
    513513
    514514Then, just edit the file and replace
    515 ``{{ site_header|default:_('Django administration') }}`` with your own site's
    516 name as you see fit, e.g. ``{{ _('Polls administration') }}``. We use this
    517 approach to teach you how to override templates. In an actual project, you
    518 would probably use the :attr:`django.contrib.admin.AdminSite.site_header`
    519 attribute to more easily make this particular customization.
     515``{{ site_header|default:_('Django administration') }}`` (including the curly
     516braces) with your own site's name as you see fit. We use this approach to teach
     517you how to override templates. In an actual project, you would probably use
     518the :attr:`django.contrib.admin.AdminSite.site_header` attribute to more easily
     519make this particular customization.
    520520
    521521This template file contains lots of text like ``{% block branding %}``
    522522and ``{{ title }}``. The ``{%`` and ``{{`` tags are part of Django's
Back to Top