产生报错的原因在于index.html未被引用到,处理办法是在setting.py中加入app的name。

我这里app的名字叫sign,所以加入sign就好了

django引用模板报错Template file 'index.html' not found

再次访问就好啦

django引用模板报错Template file 'index.html' not found

 

  

相关文章: