Opened 17 years ago

Closed 17 years ago

#4721 closed (invalid)

Django Tutorial part 2 Polls Admin

Reported by: adroffne@… Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The Django Tutorial part 2 Polls Admin templates example is confusing. Users are told to change the text in their copy of admin/base_site.html.

There is no plain text in that template, only tags. All text items are in %-TRANS tags, which I assume act like GNU gettext() translations.

I found the Django templates instructions, and commented-out the %-TRANS tags. Then, I wrote plain text in place of them.

Please, describe how to work with the templates in more detail.

Change History (1)

comment:1 by Simon G. <dev@…>, 17 years ago

Resolution: invalid
Status: newclosed

I'm not sure what you're looking at - my base_site.html looks like this:

{% extends "admin/base.html" %}
{% load i18n %}

{% block title %}{{ title|escape }} | {% trans 'Django site admin' %}{% endblock %}

{% block branding %}
<h1 id="site-name">{% trans 'Django administration' %}</h1>
{% endblock %}

{% block nav-global %}{% endblock %}

where it should be fairly obvious that you want to modify the Django site admin and Django administration parts

Note: See TracTickets for help on using tickets.
Back to Top