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

我可以肯定至少已经正确安装了它,因为我可以通过外壳将其导入(如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',)

最佳答案

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

它说


  要激活所有可用的Bootstrap插件,请使用:
  
  CMS_CASCADE_PLUGINS =('cmsplugin_cascade.bootstrap3',)

关于python - djangocms-cascade不在插件下拉列表中吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26290309/

10-12 22:48