Setting the Admin Area Site’s Name, Title, Header
Add these at bottom of url.py of your main application, make sure that admin is imported
admin.site.site_header= "Lewhdk Admin"
admin.site.site_title= "Lewhdk Admin Area"
admin.site.index_title= "Welcome to Lewhdk admin area"
To extend the admin base file create admin folder in the template folder and create base_site.html
templates/admin/base_site.html
{% block branding %}
{% endblock%}
{% block extrastyle %}
{% endblock %}
Admin.css
#header{
color:var(--color-1);
background-color: var(--light-grey,#ddd);
height: 70px;
}
.module h2, .module caption, .inline-group{
background-color: var(--grey,#ddd);
color: var(--color-1, black)
}
.module caption{
background-color: var(--light-grey,#ddd);
}
a{
color: var(--color-1) !important;
}
.module caption , #header a{
color: var(--color-2,yellow) !important;
font-size: 12px;
}
div.breadcrumbs{
background-color: var(--grey,blue);
color:black;
}
h1{
font-size: 26px;
}
.button.default, input[type="submit"].default, .submit-row input.default{
background-color: var(--color-2, #333);
}
.button, input[type="submit"], input[type="button"], .submit-row input, a.button {
background-color: var(--color-3, #555);
}
.deletelink-box a{
color:white !important;
}