Customize administration base template to mention Authentic

This commit is contained in:
Frédéric Péters 2010-05-31 16:34:21 +02:00
parent ecd08f18f8
commit f6e3cc80fb
2 changed files with 14 additions and 3 deletions

View File

@ -1,7 +1,10 @@
# Django settings for authentic project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
@ -79,9 +82,7 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF = 'authentic.urls'
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
os.path.join(PROJECT_PATH, 'templates'),
)
INSTALLED_APPS = (

View File

@ -0,0 +1,10 @@
{% extends "admin/base.html" %}
{% load i18n %}
{% block title %}{{ title }} | {% trans 'Authentic site admin' %}{% endblock %}
{% block branding %}
<h1 id="site-name">{% trans 'Authentic administration' %}</h1>
{% endblock %}
{% block nav-global %}{% endblock %}