📜  在 django 中导入消息的位置 - Python 代码示例

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

代码示例1
from django.contrib import messages

messages.info(request, 'Three credits remain in your account.')
messages.success(request, 'Profile details updated.')
messages.warning(request, 'Your account expires in three days.')
messages.error(request, 'Document deleted.')
messages.debug(request, '%s SQL statements were executed.' % count)