
Hello Techies,
This blog is about Django admin UI customization. In this blog, I am giving you some examples of how to work on Django admin UI customization such as how to apply CSS on Django admin login UI and how to change Django admin interface.
By default, Django Admin is a responsive GUI, providing a variety of features and overall CRUD applications to help developers and users. Django admin can be customized to meet similar needs.
In my previous blog, I also covered the following topics based on the Django admin.
Table of Contents
Django Admin UI Customization
Django Admin Login UI Template
Use the following CSS and HTML templates to change the header color and text of the login panel.
Add the below HTML in the templates folder.
# templates/admin/login.html
{% extends 'admin/login.html' %}
{% load static %}
{% block branding %}
<h1 id="head">
<img src="{% static '/images/logo.png' %}" alt=""/>
TechPlusLifestyle (Backend Login)
</h1>
{% endblock %}
Here we have extended the login HTML template ({% extends ‘admin/login.html’ %}) from the admin so that we can bring the default code of the Django admin login interface.
Add below CSS in static/css folder.
# blog/static/css/adminstyle.css
#header{
background: rgb(0, 62, 69);
color: #ffffff;
}
#branding h1{
color: #ffffff;
}
.login .submit-row{
padding:0px !important;
float: right;
}
.button, input[type=submit], input[type=button], .submit-row input, a.button {
background: rgb(0, 62, 69);
padding: 10px 15px;
border: none;
border-radius: 4px;
color: #fff;
cursor: pointer;
}
Rendered HTML
Login panel styling completed. Now let’s go ahead and change the Django admin panel interface styling.
Django Admin Panel Interface Customization
We need below CSS and HTML template for customizing the Django admin interface.
Add below HTML in the templates folder.
# templates/admin/base_site.html
{% extends 'admin/base.html' %}
{% load static %}
{% block branding %}
<h1 id="head">
<img src="{% static '/images/logo.png' %}" alt=""/>
TechPlusLifestyle
</h1>
{% endblock %}
{% block extrastyle %}
<link href="{% static 'css/adminstyle.css' %}" rel='stylesheet' type='text/css' />
{% endblock %}
Here we have extended the base HTML template ({% extends ‘admin/base.html’ %}) from the admin so that we can bring the default code of the Django admin interface.
Add below CSS file in the static folder.
# blog/static/css/adminstyle.css
#header{
background: rgb(0, 62, 69);
color: #ffffff;
}
#branding h1{
color: #ffffff;
}
div.breadcrumbs{
background:rgb(61, 88, 106);
padding:10px 40px;
border: none;
font-size: 14px;
color: #ffffff;
text-align: left;
}
We have added the styling to breadcrumb id also.
Rendered HTML
Let’s add styling to the body content.
Add the below CSS.
# blog/static/css/adminstyle.css
.module h2, .module caption, .inline-group h2{
background: rgb(0, 62, 69);
}
.dashboard #content {
width: 850px;
}
Rendered HTML

I hope you understand how to customize Django admin interface UI. If you have any suggestions please comment below or let me know in the comment box if you are looking for something in Django Domain UI customization so that we can work on that specific area.
Django Admin UI Customization project source code.
https://github.com/pranalikambli/django_admin_interface
