今天不知道什么情况django的模版渲染不对了
老是说找不到模版文件= =
后来去settings下面
把这个
TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), '..', 'templates').replace('\\','/'),)
改成了这个
TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), '..', 'templates').replace('\\', '/'),)
什么 没有区别
倒数第二个逗号后面打了个空格哦 然后就可以了哦
然后pycharm你是在玩我么 为什么之前几个项目没有这个问题 今天突然就抽风了= =