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

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

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

再次访问就好啦

  

猜你喜欢

转载自www.cnblogs.com/caoyt/p/11199100.html
今日推荐