‘Diango中明明模版的名称写的是对的,但是访问url的时候发现没调用模版’解决方案

一、问题描述

  如下代码中模版的名称写的是student01.html,且创建的时候模版的名称也是student01.html,但是就是在访问url的时候没有展示模版中的内容;出现这种情况是因为你的项目中其他应用下的模版的名称有与student01.html重复的;将你模版的名称改一下,再次访问即可看到模版中的内容。

return render(request, 'student01.html',context=context)
原文地址:https://www.cnblogs.com/lxmtx/p/13500927.html