标签:页面 template 分享图片 参数 一件事 图片 djang 文件夹 就是
第一步urls

第二部;views,使用render第一件事是参数req,第二部页面

第三部:把html页面写再templates文件夹中

补充:
1html页面{{ time }}两个大括号,记住括号里要空格,不然显示不出来

2显示时间函数,render,最后其实就是一组字典{}

runserver启动即可
标签:页面 template 分享图片 参数 一件事 图片 djang 文件夹 就是
原文地址:https://www.cnblogs.com/wfl9310/p/9397194.html