控制台错误" imageInput.fileupload不是函数"通过django-summernote上传图片

时间:2016-04-14 12:25:55

标签: jquery django summernote

我试图将图片上传到django-summernote文本编辑器。在chrome developer tools控制台中我找到了这个。请帮帮我

MEDIA_URL = "/media/"

MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), "media_cdn")

SUMMERNOTE_CONFIG = {
'iframe':False,
'airMode':False,
'styleWithTags': True,
'toolbar': [
    ['style', ['style']],
    ['style', ['bold', 'italic', 'underline', 'clear']],
    ['para', ['ul', 'ol', 'height']],
    ['insert', ['link', 'picture']],
],
'disable_upload': False,
'internal_css': (
static('django_summernote/summernote.css'),
),
    'internal_js': (
static('django_summernote/jquery.ui.widget.js'),
static('django_summernote/jquery.iframe-transport.js'),
static('django_summernote/jquery.fileupload.js'),
static('django_summernote/summernote.min.js'),
),
'attachment_upload_to': MEDIA_ROOT,
'attachment_model': 'django_summernote.ImageAttachment',
'attachment_storage_class': 'django.core.files.storage.Storage',

}

0 个答案:

没有答案