All major DCL plugins added
This commit is contained in:
parent
0d4af5758d
commit
d85e1c671b
25 changed files with 1052 additions and 304 deletions
|
|
@ -227,7 +227,7 @@ CMS_TEMPLATES = (
|
|||
('blog_ungleich.html', gettext('Blog')),
|
||||
('page.html', gettext('Page')),
|
||||
# dcl
|
||||
('datacenterlight/cms_page.html', gettext('Data Center Light')),
|
||||
('datacenterlight/cms/base.html', gettext('Data Center Light')),
|
||||
('ungleich_page/glasfaser_cms_page.html', gettext('Glasfaser')),
|
||||
('ungleich_page/ungleich_cms_page.html', gettext('ungleich')),
|
||||
)
|
||||
|
|
@ -332,9 +332,41 @@ CMS_PLACEHOLDER_CONF = {
|
|||
},
|
||||
]
|
||||
},
|
||||
'datacenterlight_navbar': {
|
||||
'name': _('Datacenterlight Navbar'),
|
||||
'plugins': ['DCLNavbarPlugin'],
|
||||
'default_plugins': [
|
||||
{
|
||||
'plugin_type': 'DCLNavbarPlugin',
|
||||
'values': {},
|
||||
},
|
||||
]
|
||||
},
|
||||
'datacenterlight_footer': {
|
||||
'name': _('Datacenterlight Footer'),
|
||||
'plugins': ['DCLFooterPlugin'],
|
||||
'default_plugins': [
|
||||
{
|
||||
'plugin_type': 'DCLFooterPlugin',
|
||||
'values': {},
|
||||
},
|
||||
]
|
||||
},
|
||||
'datacenterlight_calculator': {
|
||||
'name': _('Datacenterlight Calculator'),
|
||||
'default_plugins': [
|
||||
{
|
||||
'plugin_type': 'DCLCalculatorPlugin',
|
||||
'values': {
|
||||
'heading': 'Heading',
|
||||
'content': 'Text'
|
||||
},
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
CMS_PERMISSION=True
|
||||
CMS_PERMISSION = True
|
||||
|
||||
CACHES = {
|
||||
'default': {
|
||||
|
|
@ -522,14 +554,14 @@ if UNGLEICH_SITE_CONFIGS == "":
|
|||
raise Exception("Please define UNGLEICH_SITE_CONFIGS in your .env")
|
||||
else:
|
||||
try:
|
||||
configs_dict=json.loads(UNGLEICH_SITE_CONFIGS)
|
||||
configs_dict = json.loads(UNGLEICH_SITE_CONFIGS)
|
||||
except ValueError as verr:
|
||||
raise Exception("UNGLEICH_SITE_CONFIGS is not a valid JSON: {}".format(
|
||||
str(verr)
|
||||
))
|
||||
else:
|
||||
MULTISITE_CMS_URLS = {
|
||||
k:v['MULTISITE_CMS_URL'] for (k,v) in configs_dict.items()
|
||||
k: v['MULTISITE_CMS_URL'] for (k, v) in configs_dict.items()
|
||||
}
|
||||
|
||||
MULTISITE_CMS_ALIASES = {
|
||||
|
|
@ -611,7 +643,7 @@ DCL_ERROR_EMAILS_TO_LIST = []
|
|||
if DCL_ERROR_EMAILS_TO is not None:
|
||||
DCL_ERROR_EMAILS_TO_LIST = [x.strip() for x in
|
||||
DCL_ERROR_EMAILS_TO.split(
|
||||
',')] \
|
||||
',')] \
|
||||
if "," in DCL_ERROR_EMAILS_TO else [DCL_ERROR_EMAILS_TO.strip()]
|
||||
|
||||
if 'info@ungleich.ch' not in DCL_ERROR_EMAILS_TO_LIST:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue