django添加富文本

1.安裝django-ckeditor模塊 pip install django-ckeditor 2.setting.py配置 2.setting.py配置 (1)安裝app (2)配置路由 3.models.py 導入RichTextField模塊 替換之前的text字段 4.再進行settings配置 5.收集靜態 python manage.py collectstatic  將項目當中設
相關文章
相關標籤/搜索