报错:No module named ‘widgets’的解决办法
2026/7/28 15:59:51 网站建设 项目流程

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

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询