Contrib¶
Diskette definitions¶
Diskette configuration that you can use in your project.
- cmsplugin_blocks.contrib.disk.DISKETTE_DEFINITIONS = [['cmsplugin_blocks', {'comments': 'CMS Blocks', 'models': ['cmsplugin_blocks.Feature', 'cmsplugin_blocks.Accordion', 'cmsplugin_blocks.AccordionItem', 'cmsplugin_blocks.Album', 'cmsplugin_blocks.AlbumItem', 'cmsplugin_blocks.Card', 'cmsplugin_blocks.Container', 'cmsplugin_blocks.Hero', 'cmsplugin_blocks.Slider', 'cmsplugin_blocks.SlideItem'], 'natural_foreign': True}]]¶
List of diskette definitions related to application.
Django configurations class¶
django-configuration class that you can use in your project to load application default settings.
You just have to inherit from it in your settings class:
from configurations import Configuration
from cmsplugin_blocks.contrib.django_configuration import CmsBlocksDefaultSettings
class Dev(CmsBlocksDefaultSettings, Configuration):
DEBUG = True
BLOCKS_ENABLED_PLUGINS = [
"CardPlugin",
"ContainerPlugin",
]
This will override only the setting BLOCKS_ENABLED_PLUGINS, all other
application settings will have the default values from
cmsplugin_blocks.defaults.