from django.shortcuts import HttpResponse, render, redirect 导入
user_info={'name':"mlj"}
return render(request,"index.html",{"user":user_info})
本文介绍了如何使用Django框架中的render方法将用户信息传递给HTML页面,并展示了具体的Python代码实现。
from django.shortcuts import HttpResponse, render, redirect 导入
user_info={'name':"mlj"}
return render(request,"index.html",{"user":user_info})
转载于:https://www.cnblogs.com/mljqqh/p/6865948.html

被折叠的 条评论
为什么被折叠?