DjangoUeditor是基于Python 2.7的,对Python3的支持有问题。导致widgets.py文件出错,不能import。采用网上修改好的版本DjangoUeditor3即可!
https://github.com/twz915/DjangoUeditor3
复制文件夹里面的DjangoUeditor文件夹,放到环境下的lib/site-packages/下
C:\Users\xxx\AppData\Roaming\Python\Python37\site-packages
D:\python\Lib\site-packages
相关参考:
https://www.jianshu.com/p/d236a33a8c01
https://github.com/twz915/DjangoUeditor3