Django CKEditor RichTextEditorWidget Admin not working
I'm trying to create a textfield with CKEditor >>> from ckeditor.widgets import CKEditorWidget to be able to add notes for every row in the admin and save them. I followed the tutorial on CKeditor docs and its not working. There are no error its just the CKEditorWidget not showing in the textfields.
here is my admin.py file:
from django import forms from django.contrib import admin from ckeditor.widgets import CKEditorWidget # Register your models here. from .models import Inventory from import_export.admin import ImportExportModelAdmin class InventoryAdminForm(forms.ModelForm): notes = forms.CharField(widget=CKEditorWidget()) class Meta: model = Inventory fields = '__all__' class InventoryAdmin(ImportExportModelAdmin): list_display = ['sku','qty','price','notes'] list_filter = ('sku','qty','price',) search_fields = ('sku','qty','price',) list_editable = ('qty','price','notes') list_max_show_all = True form = InventoryAdminForm admin.site.register(Inventory, InventoryAdmin)
the text editor is not showing up.