用pycharm新建django工程,初次运行报错 错误信息.png 解决方案: 1.修改setting.py文件的DIRS 'DIRS': [str.format(BASE_DIR) +'/templates'], 2.重新运行 成功.png