起因:运行一个django小程序,结果报错:
Exception Type: | TemplateDoesNotExist |
---|---|
Exception Value: | index.html |
分析:后来发现不小心把templates文件夹写成了template文件夹导致了模板文件index.html无法被识别
解决方法:把应用中的文件夹templates改成template
起因:运行一个django小程序,结果报错:
Exception Type: | TemplateDoesNotExist |
---|---|
Exception Value: | index.html |
分析:后来发现不小心把templates文件夹写成了template文件夹导致了模板文件index.html无法被识别
解决方法:把应用中的文件夹templates改成template