django.template.exceptions.TemplateDoesNotExist: ueditor.html

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

先把错误报上来:

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

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

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

如果上述办法还不行,那需要将,Extar_apps 中的DjangoUeditor中的,templates 文件夹,复制到Python 的DjangoUeditor包中,即可。

猜你喜欢

转载自blog.csdn.net/u012798683/article/details/106666331
今日推荐