Mercurial > personas_backend
changeset 125:a3be587ac81e
Customized the admin site, added a link in the title that takes you back to the Personas home page.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Tue, 01 Apr 2008 18:57:20 -0700 |
parents | 78c9aa2d7802 |
children | cb128e025ae9 |
files | PersonasBackend/settings.py templates/admin/base_site.html |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/PersonasBackend/settings.py Tue Apr 01 18:33:18 2008 -0700 +++ b/PersonasBackend/settings.py Tue Apr 01 18:57:20 2008 -0700 @@ -80,6 +80,7 @@ # 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.normpath( os.path.join( myPath, "..", "templates" ) ), ) INSTALLED_APPS = (
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/admin/base_site.html Tue Apr 01 18:57:20 2008 -0700 @@ -0,0 +1,10 @@ +{% extends "admin/base.html" %} +{% load i18n %} + +{% block title %}{{ title }} | {% trans 'Personas site admin' %}{% endblock %} + +{% block branding %} +<a href="{% url personas-home %}"><h1 id="site-name">{% trans 'Personas for Firefox' %}</h1></a> +{% endblock %} + +{% block nav-global %}{% endblock %}