def patch_settings():
    'Merge settings with global cms settings, so all required attributes\n    will exist. Never override, just append non existing settings.\n    \n    Also check for setting inconsistencies if settings.DEBUG\n    '
    if patch_settings.ALREADY_PATCHED:
        return
    patch_settings.ALREADY_PATCHED = True
    if getattr(settings, 'CMS_MODERATOR', False):
        warnings.warn('CMS_MODERATOR will be removed and replaced in django CMS 2.4!', CMSDeprecationWarning)
    from cms.conf import global_settings
    pre_patch()
    for attr in dir(global_settings):
        if ((attr == attr.upper()) and (not hasattr(settings, attr))):
            setattr(settings._wrapped, attr, getattr(global_settings, attr))
    post_patch()
    if settings.DEBUG:
        post_patch_check()
Merge settings with global cms settings, so all required attributes
will exist. Never override, just append non existing settings.

Also check for setting inconsistencies if settings.DEBUG
def patch_settings():
    'Merge settings with global cms settings, so all required attributes\n    will exist. Never override, just append non existing settings.\n    \n    Also check for setting inconsistencies if settings.DEBUG\n    '
    if patch_settings.ALREADY_PATCHED:
        return
    patch_settings.ALREADY_PATCHED = True
    if getattr(settings, 'CMS_MODERATOR', False):
        warnings.warn('CMS_MODERATOR will be removed and replaced in django CMS 2.4!', CMSDeprecationWarning)
    from cms.conf import global_settings
    pre_patch()
    for attr in dir(global_settings):
        if ((attr == attr.upper()) and (not hasattr(settings, attr))):
            setattr(settings._wrapped, attr, getattr(global_settings, attr))
    post_patch()
    if settings.DEBUG:
        post_patch_check()