render方法的使用
一般用在视图函数views.py文件中,匹配到路由,需要执行函数时,当我们需要进行渲染,
就要用到这个方法。
from django.shortcuts import render
return render(request,"timer.html")
这里会直接在项目目录下找templates文件夹中的timer.html文件。

一般用在视图函数views.py文件中,匹配到路由,需要执行函数时,当我们需要进行渲染,
就要用到这个方法。
from django.shortcuts import render
return render(request,"timer.html")
这里会直接在项目目录下找templates文件夹中的timer.html文件。
