运行程序例子app.py,报错,no template named index
解决方法:
I am doing the same exercise and I simply go on cmd , cd to my lpthw directory which contains the folders of the project skeleton inside and do:
python bin/app.py
I think you have to put all your files from the project skeleton in one folder and run your app from there. Hope this helps. :)
因为直接在app.py该目录下,启动程序,程序不会进入到上一层目录,寻找模板。所以运行程序最好将整个project目录包含进去。