Jason Hasselkus

A whole lot of something for nothing

Jason Hasselkus header image 2

Making Django Admin More Personal

June 18th, 2008 · No Comments

This is a really quick improvement I did to distinguish one Django admin screen from the next. Typically I might have two or three windows open to admin any one site at any one time. So there had to be a way to customize the admin css in order give it a more precise label, instead of the out-of-the-box heading of “Django Admininstration”. So here is what I did:
In my templates directory, I created a directory called “admin”. Inside that directory, I created a file called “base_site.html”. “base_site.html” is simply a template and allows me to write whatever I want to to change the default admin look and feel. Inside “base_site.html” I put the following template code:

% extends "admin/base.html" %}

{% block branding %}

Left Side Lids Administration

{% endblock %}

That’s it, now when I have a few windows open I see something like “Left Side Lids Admininstration” instead of of “Django Administration”. With many sites and constant admin work, it makes it a lot nicer to brand your Django application.

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • blinkbits
  • BlinkList
  • blogmarks
  • co.mments
  • connotea
  • del.icio.us
  • De.lirio.us
  • digg
  • Fark
  • feedmelinks
  • Furl
  • LinkaGoGo
  • Ma.gnolia
  • NewsVine
  • Netvouz
  • RawSugar
  • Reddit
  • scuttle
  • Shadows
  • Simpy
  • Smarking
  • Spurl
  • TailRank
  • Wists
  • YahooMyWeb

Categories: Django

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.