#20652 closed Uncategorized (invalid)

Changing Django admin header

Reported by: jte223@… Owned by: nobody
Component: Uncategorized Version: 1.5
Severity: Normal 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

I'm very new to programming and have just started going through the django project tutorial. In part 2 of the tutorial, it shows you how to customize your project template by changing the header of the django admin page. For some reason, after following the instructions to a T, I cannot get it to work. The admin header does not change, remains as "Django Administration". I've looked around for solutions, tried a few, no luck. One solution was to use a relative file path instead of absolute but this did not work either.

Here is my code for the TEMPLATE_DIRS settings on the settings file (mysite/settings):

TEMPLATE_DIRS = (

'/Work1/GitProjects/DjangoPolls/mysite/templates',
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Don't forget to use absolute paths, not relative paths.

)
Here is my code for the base_site.html:

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

{% block title %}{{ title }} | {% trans 'Polls app' %}{% endblock %}

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

{% block nav-global %}{% endblock %}
I have also tried syncdb and running the server again with no changes.

Change History (1)

comment:1 Changed 21 months ago by claudep

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Sorry, but this is not a support channel, the ticket system is dedicated to bugs or new feature proposals for Django itself.

See https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels

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