📜  django 消息框架 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:15.376000             🧑  作者: Mango

代码示例5
from django.contrib.messages import constants as messages

MESSAGE_TAGS = {
    messages.DEBUG: 'alert-info',
    messages.INFO: 'alert-info',
    messages.SUCCESS: 'alert-success',
    messages.WARNING: 'alert-warning',
    messages.ERROR: 'alert-danger',
}