Source code for shuup.simple_cms

# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals

from django.utils.translation import ugettext_lazy as _

import shuup.apps


[docs]class AppConfig(shuup.apps.AppConfig): name = __name__ verbose_name = _("Content Pages") label = "shuup_simple_cms" provides = { "front_urls_post": ["shuup.simple_cms.urls:urlpatterns"], "admin_module": ["shuup.simple_cms.admin_module:SimpleCMSAdminModule"], "front_template_helper_namespace": ["shuup.simple_cms.template_helpers:SimpleCMSTemplateHelpers"], "xtheme_layout": [ "shuup.simple_cms.layout:PageLayout", ], "xtheme_plugin": ["shuup.simple_cms.plugins:PageLinksPlugin"], "simple_cms_template": [ "shuup.simple_cms.templates:SimpleCMSDefaultTemplate", "shuup.simple_cms.templates:SimpleCMSTemplateSidebar", ], "admin_page_form_part": ["shuup.simple_cms.admin_module.form_parts:CMSOpenGraphFormPart"], }
[docs] def ready(self): import reversion from shuup.simple_cms.models import Page reversion.register(Page._parler_meta.root_model) from shuup.utils.djangoenv import has_installed if has_installed("shuup.xtheme"): from django.db.models.signals import post_save from shuup.xtheme.cache import bump_xtheme_cache post_save.connect(bump_xtheme_cache, sender=Page)
default_app_config = __name__ + ".AppConfig"