@require_global_staff
@require_POST
def generate_example_certificates(request, course_id=None):
 course_key = CourseKey.from_string(course_id)
 certs_api.generate_example_certificates(course_key)
 return redirect(_instructor_dash_url(course_key, section='certificates'))

@ require_global_staff @ require_POST def generate_example_certificates ( request , course_id = None ) : course_key = CourseKey . from_string ( course_id ) certs_api . generate_example_certificates ( course_key ) return redirect ( _instructor_dash_url ( course_key , section = 'certificates' ) )
start generating a set of example certificates .