# 导入消息闪现模块
from django.contrib import messages
# 消息闪现的用法
# messages.warning(request,"不能有空")
# 视图函数代码
def login(request):
if request.method=="POST":
name=request.POST.get("name")
pwd=request.POST.get("pwd"<
django框架学习之消息闪现
最新推荐文章于 2024-05-31 07:17:19 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)