def validate_marketing_site_config(settings):
 if settings.FEATURES.get('ENABLE_MKTG_SITE'):
  if (not hasattr(settings, 'MKTG_URLS')):
   raise ValueError("'ENABLE_MKTG_SITE' is True, but 'MKTG_URLS' is not defined.")
  if (not settings.MKTG_URLS.get('ROOT')):
   raise ValueError("There is no 'ROOT' defined in 'MKTG_URLS'.")

def validate_marketing_site_config ( settings ) : if settings . FEATURES . get ( 'ENABLE_MKTG_SITE' ) : if ( not hasattr ( settings , 'MKTG_URLS' ) ) : raise ValueError ( "'ENABLE_MKTG_SITE' is True, but 'MKTG_URLS' is not defined." ) if ( not settings . MKTG_URLS . get ( 'ROOT' ) ) : raise ValueError ( "There is no 'ROOT' defined in 'MKTG_URLS'." )
validates marketing site related configurations .