The Django Admin page is different shades of blue by default.
Where do I access how these colours are controlled? I want to change it all to shades of green instead of blue.
Ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can override the admin templates. You probably want to the
admin/base_site.htmltemplate, and provide anextrastyleblock with any CSS you want to inject into the template. You’ll need to know which styles to override (there’s quite a few) – when I did this I just found the elements I wanted to change, and added styles until everything looked right.So, presuming you’ve got a templates directory somewhere (which is set in
TEMPLATE_DIRS), create a file calledadmin/base_site.html, which is probably going to be a copy ofdjango/contrib/admin/templates/admin/base_site.html.For example, my
base_site.htmltemplate has a section in it like this:In
yourcssfile.cssyou just have: