From b7ee576ac44a7f2eae484ec8ed215bf2dc0ae179 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 9 Dec 2010 20:41:14 +0100 Subject: Simple customisation of the administration pages (refs #26) --- ishtar/settings.py.example | 6 +++--- ishtar/templates/admin/base_site.html | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 ishtar/templates/admin/base_site.html diff --git a/ishtar/settings.py.example b/ishtar/settings.py.example index 5a15e0e6d..1c5f3e7f2 100644 --- a/ishtar/settings.py.example +++ b/ishtar/settings.py.example @@ -3,6 +3,8 @@ # Ishtar custom SRID = 27572 +ROOT_PATH = "/var/local/webapp/ishtar/ishtar/" + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -83,9 +85,7 @@ MIDDLEWARE_CLASSES = ( ROOT_URLCONF = 'ishtar.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. + ROOT_PATH + 'templates', ) INSTALLED_APPS = ( diff --git a/ishtar/templates/admin/base_site.html b/ishtar/templates/admin/base_site.html new file mode 100644 index 000000000..3282d4f5a --- /dev/null +++ b/ishtar/templates/admin/base_site.html @@ -0,0 +1,10 @@ +{% extends "admin/base.html" %} +{% load i18n %} + +{% block title %}{{ title }} | {% trans 'Ishtar administration' %}{% endblock %} + +{% block branding %} +

{% trans 'Ishtar administration' %}

+{% endblock %} + +{% block nav-global %}{% endblock %} -- cgit v1.2.3