1 ,在运行generate_list.py时一直出现找不到templates/header.html和templates/footer.html的错误提示
2,后来才发现是路径问题,由于webapp是另外新建的目录,所以对yate.py中with open('templates/header.html') as headf:和with open('templates/footer.html') as headf:修改为自己当前webap/templates的路径
修改后:
1 ,在运行generate_list.py时一直出现找不到templates/header.html和templates/footer.html的错误提示
2,后来才发现是路径问题,由于webapp是另外新建的目录,所以对yate.py中with open('templates/header.html') as headf:和with open('templates/footer.html') as headf:修改为自己当前webap/templates的路径
修改后: