from ckeditor_uploader.fields import RichTextField, RichTextUploadingField ImportError: cannot import name ‘RichTextField’

QuestionsCategory: Djangofrom ckeditor_uploader.fields import RichTextField, RichTextUploadingField ImportError: cannot import name ‘RichTextField’
Rishab Staff asked 9 months ago

from ckeditor_uploader.fields import RichTextField, RichTextUploadingField
ImportError: cannot import name ‘RichTextField’

1 Answers
devchandan Staff answered 9 months ago

Here, In your models.py import from ckeditor.fields import RichTextField and use it directly like this
 

class Foo(models.Model):
   content = RichTextField()