经查资料发现,DjangoUeditor是基于Python 2.7的,对Python3的支持有问题。导致widgets.py文件出错,不能import。解决方法为修改widgets.py或者采用网上修改好的版本DjangoUeditor3

1:下载(https://github.com/twz915/DjangoUeditor3),解压,上传到有权限的目录。

如果之前安装过,那么就要卸载
pip uninstall DjangoUeditor
安装在https://github.com/twz915/DjangoUeditor3上面有说明,解压文件中的readme.md中也有说明

python setup.py install
pip install DjangoUeditor

就完成了安装
pip list查看一下

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注