Django admin colours
See this too: Overriding admin css in django
http://lincolnloop.com/static/slides/2010-djangocon/customizing-the-admin.html#slide37
You can override the admin templates. You probably want to the admin/base_site.html
template, and provide an extrastyle
block 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 called admin/base_site.html
, which is probably going to be a copy of django/contrib/admin/templates/admin/base_site.html
.
For example, my base_site.html
template has a section in it like this:
{% block extrastyle %}
<link href="{{ STATIC_URL }}css/adminextra.css" rel="stylesheet" type="text/css" media="screen,projection" />
{% endblock %}
In yourcssfile.css
you just have:
a:link, a:visited { color: awesome; text-decoration: underline; }