ckediror use
1. Install appropriate libraries
pip install django-ckeditor
2. Add the library to the next INSTALLED_APPS settings.py
3. ckeditor disposed below the settings.py
4. Configuration models.py
Table makemigrations migrate perform generation
5. Run python manage.py collectstatic (ckeditor will need to download a media STATIC_ROOT path specified.) Note: after downloading commented STATIC_ROOT settings.py avoid unnecessary bug occurs
After the execution, we can see under static folder is a folder ckeditor
6. Register model to Admin
* Note: The registered admin.py Please ignore this. If you are using a adminx.py
\
We need this Register
7. Log backstage view Rich Text Editor
7. you that want ckeditor upload files, configure urls.py
Suggest:
Nice blog: https: //www.bbsmax.com/A/D854gp2vJE/
Introduction The use django-tinymce
Article content with django-ckeditor