1、今天在公司新电脑上部署官网Django环境遇到个坑爹的问题。

先把错误报上来:

django.template.exceptions.TemplateDoesNotExist: ueditor.html

django.template.exceptions.TemplateDoesNotExist: ueditor.html

2、意思就是没有ueditor.html这个模板。

找了很久,都没有找到问题在哪。后来发现。是因为Xadmin的文件夹extra_appss没有设置为Sources Root。

django.template.exceptions.TemplateDoesNotExist: ueditor.html

django.template.exceptions.TemplateDoesNotExist: ueditor.html

3、解决办法,将其右键设置为Sources Root文件夹,错误即可消失。

 

相关文章:

  • 2021-06-16
  • 2022-12-23
猜你喜欢
  • 2021-05-15
  • 2021-05-15
  • 2021-06-02
  • 2021-09-13
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案