tags:

views:

429

answers:

1

So I have installed the new Messages Framework. The documentation mentions using a css class called "messages" in the template. But I can't seem to find any such css class in any of the files in the trunk. What I want to do is, in the Django Admin, have a red cross, instead of a green v, when displaying an error.

http://docs.djangoproject.com/en/dev/ref/contrib/messages/#ref-contrib-messages

+2  A: 

You can define the styling for .messages in your own CSS file, there doesn't need to be one already defined in the trunk.

Ned Batchelder
Thanks for your reply. But if we all have to define our own classes for the Django Admin, why not supply it by default?
orwellian
Because logically what you need is change styles. All style changes should be done in css. NOTE: you do not need to change any files from django trunk - just extends admin/base_site.html template with your styles
Pydev UA