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?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.