我之前遇到的错误也是显示的同一张错误,因为我的models,UEditorField方法里面的imagePath路径是这样的:
ic_content = UEditorField(verbose_name='内容编辑', width='90%', height=900, toolbars='full', default=u'',
imagePath='ueditor/images',
filePath='ueditor/fields',
但是这个路径应该是没什么错的,我们就是想利用ueditor富文本的插件将图片插入到文本里面将图片保存到本地,或者服务器,但是你以ueditor为文件夹路径是错误的,程序将ueditor不是文件夹,而是一个错误的单词,你上传的图片在文件夹打开的时候,是一个乱码的utf-8文件 ,请一定要遵守编码规范,不然遇到这样的错很是浪费时间的,下面就是这个问题
Typo: In word 'ueditor' less... (Ctrl+F1)
Inspection info: Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click
我的解决办法,就是把imagePath路径改了:
ic_content = UEditorField(verbose_name='内容编辑', width='90%', height=900, toolbars='full', default=u'',
imagePath='Article_img/%%Y/%%m/',
filePath='Article_file/%%Y/%%m/',
upload_settings={'imageMaxSizing': 1024000}, command=None, settings={})
有什么问题下方请留言,一起探讨共同学习,我是一个喜欢遇到bug的人,嘻嘻++++++ |