django - django-ckeditor 没有出现在 Django 的 grappelli 管理员上
问题描述
我正在尝试在 Django 的 grappelli 管理员上使用 ckeditor。在本地环境中,它运行良好并且显示良好。但是,在将其部署到生产环境后。编辑器没有出现。
就像您在下图中看到的那样,它只是空白,什么都没有。
设置.py
DJANGO_APPS = [
...
'ckeditor',
'ckeditor_uploader'
]
CKEDITOR_UPLOAD_PATH = "ckeditor_uploads/"
CKEDITOR_CONFIGS = {
'default': {
'toolbar': [["Format", "Bold", "Italic", "Underline", "Strike", "SpellChecker"],
['NumberedList', 'BulletedList', "Indent", "Outdent", 'JustifyLeft', 'JustifyCenter',
'JustifyRight', 'JustifyBlock'],
["Image", "Table", "Link", "Unlink", "Anchor", "SectionLink",
"Subscript", "Superscript"], ['Undo', 'Redo'], ["Source"],
["Maximize"]],
},
}
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
这些都是我的 Django 应用程序中 ckeditor 的所有设置。有谁知道为什么会这样?
解决方案
推荐阅读
- python - 在 CIFAR 10 数据集上使用 VGG16 进行迁移学习:非常高的训练和测试准确度,但预测错误
- python-3.x - 从黑客等级数谷问题
- c# - 让 C# 程序与 node.js 应用程序交互的好方法是什么?
- python - 如何从文本文件中导入内容并将它们添加到变量中
- mysql - 当需要分隔单词的字符时,如何在 MySQL 中进行模糊搜索?
- java - 在 Tensorflow-lite Android 中将位图转换为 ByteBuffer(浮点数)
- linux - 在linux中替换文件的每一行中的字符
- android - 将适用于 Android TV 的 DayDream(屏幕保护程序)添加到现有的 Android 项目
- python - 如何将 gnuradio-companion xml 文件中的两个参数相乘
- windows - 如何在 anaconda 中使用默认包以外的其他 cudnn 包