def get_cms_block_link(block, page):
 return u'//{}/{}/{}'.format(settings.CMS_BASE, page, block.location)

def get_cms_block_link ( block , page ) : return u'//{}/{}/{}' . format ( settings . CMS_BASE , page , block . location )
returns a link to block_index for editing the course in cms .