Django - ckeditor 不工作 - 定制

Django - ckeditor is not working - customization

我正在尝试像这样在 Django 设置中自定义我的 ckeditor。但是一旦我保存设置,我就会收到 500 错误。否则 ckeditor 正在工作,但如果我试图自定义它,它会失败。

CKEDITOR_CONFIGS = {
    'awesome_ckeditor': {
        'toolbar': 'Basic',
    },
}

有人可以帮我吗,如何在不重写基本的情况下制作我自己的"config"?

在你的 prJ settings.py

INSTALLED_APPS = [ 'ckeditor',]

CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': 'Custom',
        'width': '500px',
        'height': '10%',
        'toolbar_Custom': [
            ['Bold', 'Italic', 'Underline'],
            ['NumberedList', 'BulletedList'],

        ],
    }
}


CKEDITOR_BASEPATH = "/static/ckeditor/ckeditor/"