def get_cms_course_link(course, page='course'):
 return u'//{}/{}/{}'.format(settings.CMS_BASE, page, unicode(course.id))

def get_cms_course_link ( course , page = 'course' ) : return u'//{}/{}/{}' . format ( settings . CMS_BASE , page , unicode ( course . id ) )
returns a link to course_index for editing the course in cms .