The first way:
1,pip install django-tinymce
2, in which INSTALL_APPS add tinymce use in the site: Configuring setting.py
TINYMCE_DEFAULT_CONFIG = { 'theme': 'advanced', 'width':600, 'height':400, }
3, when the establishment model, to be introduced from tinymce.models import HTMLField
Class Text(model.Model):
str = HTMLField()
4, html write dead
The second: the use of open source rich text editor UEditor
https://blog.csdn.net/qq_39865665/article/details/83449677