def get_program_marketing_url(programs_config):
 return urljoin(settings.MKTG_URLS.get('ROOT'), programs_config.marketing_path).rstrip('/')

def get_program_marketing_url ( programs_config ) : return urljoin ( settings . MKTG_URLS . get ( 'ROOT' ) , programs_config . marketing_path ) . rstrip ( '/' )
build a url to be used when linking to program details on a marketing site .