目錄
1.安裝模塊
pip install django-ckeditor
2.setting.py配置
(1)安裝app
(2)配置路由
3.models.py
導入RichTextField模塊
替換之前的text字段
4.再進行settings配置
5.收集靜態
python manage.py collectstatic
將項目當中設定好的靜態集中起來
執行命令成功之後,在static文件夾中會出現:
6.查看效果
7.改回設置
目錄
pip install django-ckeditor
導入RichTextField模塊
替換之前的text字段
python manage.py collectstatic
將項目當中設定好的靜態集中起來
執行命令成功之後,在static文件夾中會出現: