How to Solve NameError: name 'RichTextField' is not defined -- ckeditor

Erorr: name 'RichTextField' is not defined

NameError: name 'RichTextField' is not defined

Solution: name 'RichTextField' is not defined

# Add the following line to the top of your code
from ckeditor.fields import RichTextField

 

For more information:
Python RichTextField