今天遇到一个小问题
就是jinja2.exceptions.TemplateNotFound 找不到路径的问题
![](https://img.haomeiwen.com/i14964376/7257b35bca81962d.png)
运行what1.py时发现
![](https://img.haomeiwen.com/i14964376/edfe8001f6307019.png)
解决办法:
把需要的文件放下templates下
![](https://img.haomeiwen.com/i14964376/cb357a7bf1ce4d52.png)
接着你的代码路径旁会出现一个图标,代表你路径对了
![](https://img.haomeiwen.com/i14964376/a12b9db69bd0a768.png)
运行what1.py 就解决了
在窗口中运行代码python what1.py runserver -r -d
![](https://img.haomeiwen.com/i14964376/2c3decf694b1693e.png)
如果成功的话给个赞哦,,Fight!!(o-)尸~''☆ミ☆ミ
我是在程序猿中前进的朗明
今天遇到一个小问题
就是jinja2.exceptions.TemplateNotFound 找不到路径的问题
解决办法:
把需要的文件放下templates下
运行what1.py 就解决了
在窗口中运行代码python what1.py runserver -r -d
如果成功的话给个赞哦,,Fight!!(o-)尸~''☆ミ☆ミ
我是在程序猿中前进的朗明
本文标题:Flask-script下的问题
本文链接:https://www.haomeiwen.com/subject/rumslctx.html
网友评论