【发布时间】:2020-06-04 21:02:47
【问题描述】:
我是 Django 新手,我的 HTML 文件的路径为
./templates/registration/login.html 我想把它改成 ./templates/index/login.html
重命名为 /templates/index/login.html 后,它仍然在拾取旧目录 /templates/registration,找不到 login.html 屏幕并抛出错误。
当我们在模板结构中重命名文件夹名称时,谁能告诉我我们必须在 settings.py 中进行哪些更改?
【问题讨论】:
标签: python django jinja2 python-3.7 wsgi