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.



























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.