Christopher Spears
unread,May 22, 2013, 5:35:26 PM5/22/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi!
I am working through the Django tutorial, and I have reached the part where I want to customize my admin. Basically, I want 'Chris Spears App' to appear at the top of the page instead of 'Django administration'.
I copied the base_site.html file from its home to C:\Users\Chris\Documents\django_dev\mysite\templates\admin.
I then modified the file like so:
{% extends "admin/base.html" %}
{% load i18n %}
{% block title %}{{ title }} | {% trans 'Django site admin' %}{% endblock %}
{% block branding %}
<h1 id="site-name">{% trans 'Chris Spears App' %}</h1>
{% endblock %}
{% block nav-global %}{% endblock %}
I then modified the settings.py file:
import os
# Django settings for mysite project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
BASE_DIR = 'C:\Users\Chris\Documents\django_dev\mysite'
#BASE_DIR = os.path.dirname(os.path.dirname(__file__))
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
For some reason, I can't get the change to work. I'm pretty sure that I am referencing the wrong file, but I can't figure out how to print the value of TEMPLATE_DIRS. Any advice?