参考地址:
https://www.cnblogs.com/ianduin/p/7732983.html
https://github.com/django-ckeditor/django-ckeditor
安装
安装django-ckeditor
安装pillow,图像上传使用
pip install django-ckeditor
pip install pillow
配置django=ckeditor
1、在你的settings.py文件中,将ckeditor、ckeditor_uploader添加到INATALLED_APPS中。
2、在你的settings.py文件中,添加CKEDITOR_UPLOAD_PATH配置项。例如,我的是:
MEDIA_URL = "/media/"
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
CKEDITOR_UPLOAD_PATH = "article_images"