djangocms-cascade不在插件下拉列表中?

时间:2014-10-10 00:57:02

标签: python django django-cms

我试图让djangocms-cascade 0.4.0工作(0.3.2似乎工作正常),但是在django cms的编辑页面的下拉列表中没有选项。

我很确定我已经安装了它,至少大部分是正确安装的,因为我可以通过shell导入它(按照this question的建议。)

我的Settings.py

DEBUG = True
TEMPLATE_DEBUG = DEBUG
INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',

    # Theme
    'bootstrap3',

    # Django CMS
    'cmsplugin_cascade',
    'cms',
    'mptt',
    'menus',
    'sekizai',
    'djangocms_admin_style',
    'djangocms_text_ckeditor',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',

    'cms.middleware.user.CurrentUserMiddleware',
    'cms.middleware.page.CurrentPageMiddleware',
    'cms.middleware.toolbar.ToolbarMiddleware',
    'cms.middleware.language.LanguageCookieMiddleware',
)

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.contrib.auth.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    'django.core.context_processors.media',
    'django.core.context_processors.static',
    'django.core.context_processors.tz',
    'django.contrib.messages.context_processors.messages',
    'django.core.context_processors.request',

    'sekizai.context_processors.sekizai',
    'cms.context_processors.cms_settings',
)

TEMPLATE_DIRS = (
    os.path.join(BASE_DIR, 'templates'),
)

# Static Files

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)

MIGRATION_MODULES = {
    'cms': 'cms.migrations_django',
    'menus': 'menus.migrations_django',
}

# Django CMS
# http://docs.django-cms.org/en/latest/basic_reference/configuration.html

CMS_TEMPLATES = (
    ('cms_default.html', 'Default'),
)

CMS_PLACEHOLDER_CONF = {
    'Page Content': {
        'plugins': ['BootstrapContainerPlugin'],
    },
}

# Django CMS Cascade
# http://djangocms-cascade.readthedocs.org/en/latest/installation.html#configure-the-css-framwork

CMS_CASCADE_PLUGINS = ('bootstrap3',)

1 个答案:

答案 0 :(得分:2)

请查看0.4.0相关安装文档https://github.com/jrief/djangocms-cascade/blob/0.4.0/docs/source/installation.rst

它说

  

要激活所有可用的Bootstrap插件,请使用:

     

CMS_CASCADE_PLUGINS =('cmsplugin_cascade.bootstrap3',)