Получение ошибки javascript в ckeditor

Мой текст исчезает, и я получаю ошибку: TypeError: a is undefined в javascript, Я пытаюсь установить более старую версию, и я получаю некоторые другие ошибки, такие как AttributeError: 'FilerImage' object has no attribute render plugin

Я думаю, что мне нужны другие обновления, или они отсутствуют js но я не уверен.

мой pip freeze являются:

cmsplugin-contact==1.1.3
cmsplugin-filer==1.1.3
Django==1.9.7
django-appconf==1.0.2
django-classy-tags==0.8.0
django-cms==3.5.2
django-compressor==1.6
django-configurations==1.0
django-filer==1.3.2
django-formtools==1.0
django-mptt==0.8.6
django-polymorphic==1.0
django-reversion==2.0.13
django-sekizai==0.10.0
django-select2==6.1.2
django-treebeard==4.3
djangocms-admin-style==1.2.8
djangocms-attributes-field==0.3.0
djangocms-file==0.2.0
djangocms-googlemap==1.1.1
djangocms-link==1.7.0
djangocms-picture==2.0.6
djangocms-teaser==0.2.0
djangocms-text-ckeditor==3.6.0
easy-thumbnails==2.0
ecdsa==0.13
Fabric==1.8.3
gunicorn==18.0
html5lib==0.9999999
paramiko==1.12.4
Pillow==5.2.0
pkg-resources==0.0.0
psycopg2==2.7.5
psycopg2-binary==2.7.5
pycrypto==2.6.1
python-memcached==1.53
raven==3.4.1
six==1.11.0
Unidecode==0.4.21
webencodings==0.5.1

Мои настройки:

"""
Django settings for puxwebseite project.

For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

from configurations import Configuration


class Common(Configuration):

    BASE_DIR = os.path.dirname(os.path.dirname(__file__))

    SITE_ID = 1


    # Quick-start development settings - unsuitable for production
    # See https://docs.djangoproject.com/en/dev/howto/deployment/checklist/

    # SECURITY WARNING: keep the secret key used in production secret!
    SECRET_KEY = 'waaaaaht'

    # SECURITY WARNING: don't run with debug turned on in production!
    DEBUG = True

    # TEMPLATE_DEBUG = True

    ALLOWED_HOSTS = ['']

    # Application definition

    INSTALLED_APPS = (
        'djangocms_admin_style',
        'django.contrib.admin',
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.messages',
        'django.contrib.staticfiles',
        'django.contrib.sites',
        #'devserver',
        'reversion',
        'filer',
        'easy_thumbnails',
        'compressor',
        'djangocms_text_ckeditor',
        'cms',
        'djangocms_file',
        'djangocms_googlemap',
        'djangocms_link',
        'djangocms_picture',
        'djangocms_teaser',
        'cmsplugin_filer_file',
        'cmsplugin_filer_folder',
        'cmsplugin_filer_image',
        'cmsplugin_filer_teaser',
        'cmsplugin_filer_video',
       'cmsplugin_contact',
        'puxcmslib',
        # 'mptt',
        'menus',
        # 'south',
        'sekizai',
        'treebeard',

    )

    TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS':[
            os.path.join(BASE_DIR, 'templates'),
        ],
        'APP_DIRS': True,
        'OPTIONS': {
            'debug': DEBUG,
            'context_processors': [
                'django.contrib.auth.context_processors.auth',
                'django.template.context_processors.debug',
                'django.template.context_processors.i18n',
                'django.template.context_processors.media',
                'django.template.context_processors.static',
                'django.template.context_processors.tz',
                'django.template.context_processors.csrf',
                'django.template.context_processors.request',
                'django.contrib.messages.context_processors.messages',
                'sekizai.context_processors.sekizai',
                'cms.context_processors.cms_settings',
            ],
        }
    },
    ]
    MIDDLEWARE_CLASSES = (
        'django.contrib.sessions.middleware.SessionMiddleware',
        'django.middleware.common.CommonMiddleware',
        'django.middleware.csrf.CsrfViewMiddleware',
        'django.contrib.auth.middleware.AuthenticationMiddleware',
        'django.contrib.messages.middleware.MessageMiddleware',
        'django.middleware.locale.LocaleMiddleware',
        'django.middleware.clickjacking.XFrameOptionsMiddleware',
        'cms.middleware.page.CurrentPageMiddleware',
        'cms.middleware.user.CurrentUserMiddleware',
        'cms.middleware.toolbar.ToolbarMiddleware',
        'cms.middleware.language.LanguageCookieMiddleware',
    )



    ROOT_URLCONF = 'puxwebseite.urls'

    WSGI_APPLICATION = 'puxwebseite.wsgi.application'


    # Database
    # https://docs.djangoproject.com/en/dev/ref/settings/#databases

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
        }
    }

    # Internationalization
    # https://docs.djangoproject.com/en/dev/topics/i18n/

    LANGUAGE_CODE = 'de'

    TIME_ZONE = 'UTC'

    USE_I18N = True

    USE_L10N = True

    USE_TZ = True

    LANGUAGES = [
        ('de', 'Deutsch'),
    ]


    # Static files (CSS, JavaScript, Images)
    # https://docs.djangoproject.com/en/dev/howto/static-files/

    STATIC_URL = '/static/'
    STATIC_ROOT = os.path.join(BASE_DIR, 'static_live')
    STATICFILES_DIRS = (
        os.path.join(BASE_DIR, 'static'),
    )
    STATICFILES_FINDERS = (
        'django.contrib.staticfiles.finders.FileSystemFinder',
        'django.contrib.staticfiles.finders.AppDirectoriesFinder',
        'compressor.finders.CompressorFinder',
    )

    MEDIA_URL = '/media/'
    MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

    LOGGING = {
        'version': 1,
        'disable_existing_loggers': False,
        'handlers': {
            'console': {
                'class': 'logging.StreamHandler',
            }
        },
        'loggers': {
            'django': {
                'handlers': ['console'],
                'level': 'INFO',
                'propagate': True,
            },
        },
    }

    CMS_TEMPLATES = (
        ('template_claim.html', 'Template mit Claim'),
        ('template_blank.html', 'Template ohne Claim'),
        ('home.html', 'Startseite'),
    )

    CMS_PLACEHOLDER_CONF = {
        'claim': {
            'plugins': ['ClaimPlugin', 'FilerImagePlugin'],
            'name': 'Claim',
            'limits': {
                'ClaimPlugin': 1,
            }
        }
    }

    CKEDITOR_SETTINGS = {
    'language': '{{ language }}',
    'toolbar': 'CMS',
    'skin': 'moono-lisa',
    }
    X_FRAME_OPTIONS = 'SAMEORIGIN'
    TEXT_SAVE_IMAGE_FUNCTION = 'cmsplugin_filer_image.integrations.ckeditor.create_image_plugin'
   # TEXT_SAVE_IMAGE_FUNCTION = 'djangocms_text_ckeditor.picture_save.create_picture_plugin'

    THUMBNAIL_PROCESSORS = (
        'easy_thumbnails.processors.colorspace',
        'easy_thumbnails.processors.autocrop',
        #'easy_thumbnails.processors.scale_and_crop',
        'filer.thumbnail_processors.scale_and_crop_with_subject_location',
        'easy_thumbnails.processors.filters',
    )

    COMPRESS_PRECOMPILERS = (
        ('text/less', 'lessc {infile} {outfile}'),
    )

    #SOUTH_MIGRATION_MODULES = {
    #    'easy_thumbnails': 'easy_thumbnails.south_migrations',
    #}
    MIGRATION_MODULES = {
    'cmsplugin_contact': 'cmsplugin_contact.migrations_django',
    }


class Dev(Common):

    INTERNAL_IPS = ('127.0.0.1',)

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'iddontsay',
            'USER': 'iddontsay',
            'PASSWORD': 'iddontsay',
            'HOST': 'localhost'
        }
    }


class Prod(Common):

    DEBUG = False
    TEMPLATE_DEBUG = DEBUG

    ALLOWED_HOSTS = [
       ...idontsay]

    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql_psycopg2',
            'NAME': 'idontsay',
            'USER': 'idontsay',
            'PASSWORD': 'idontsay',
        }
    }

    INSTALLED_APPS = Common.INSTALLED_APPS + (
        'raven.contrib.django',
    )

    MIDDLEWARE_CLASSES = Common.MIDDLEWARE_CLASSES + (
        'raven.contrib.django.middleware.SentryResponseErrorIdMiddleware',
    )

    # Mail
    DEFAULT_FROM_EMAIL = 'info@prounix.de'
    EMAIL_HOST = 'localhost'



    LOGGING = {
        'version': 1,
        'disable_existing_loggers': True,
        'root': {
            'level': 'WARNING',
            'handlers': ['sentry'],
        },
        'formatters': {
            'verbose': {
                'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'  # NOQA
            },
        },
        'handlers': {
            'sentry': {
                'level': 'ERROR',
                'class': 'raven.contrib.django.handlers.SentryHandler',
            },
            'console': {
                'level': 'DEBUG',
                'class': 'logging.StreamHandler',
                'formatter': 'verbose'
            }
        },
        'loggers': {
            'django.db.backends': {
                'level': 'ERROR',
                'handlers': ['console'],
                'propagate': False,
            },
            'django.request': {
                'level': 'ERROR',
                'handlers': ['console'],
                'propagate': False,
            },
            'raven': {
                'level': 'DEBUG',
                'handlers': ['console'],
                'propagate': False,
            },
            'sentry.errors': {
                'level': 'DEBUG',
                'handlers': ['console'],
                'propagate': False,
            },
        },
    }

    CACHES = {
        'default': {
            'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
            'LOCATION': '127.0.0.1:11211',
        }
    }

Файл bundle_45a646fexx.cms.ckeditor.min.js выдает ошибку

1 ответ

Это менее ответ, чем комментарий, у которого нет репутации, но вы не должны размещать свои SECRET_KEY на ТАК. Это потенциально опасно!

Другие вопросы по тегам