Django xadmin 消息提醒(含demo)
Message Level
https://docs.djangoproject.com/en/2.1/ref/contrib/messages/
DEBUG
INFO
SUCCESS
WARNING
ERROR
xadmin 使用
self.message_user(u'告警,','warning')
self.message_user(u'恭喜,','success')
self.message_user(u'信息,','info')
self.message_user(u'錯(cuò)誤,','error')