Bypass Set Course Mode for Create and Activate Certificate in Studio Open edX
By default from Open edX, you need to perform several steps to add and activate certificates in courses such as adding course modes, adding course certificates, activating certificates, etc.
But things can be simplified, you can add and activate certificates without adding course mode.
Note: It is recommended that you set the enrollment mode default to honor, so that courses participants can generate certificates.
-
Go to Open edX server console.
-
Open and edit file
/edx/app/edxapp/edx-platform/cms/djangoapps/contentstore/views/certificates.py
. -
Find the following codes snippet:
... course_modes = [ mode.slug for mode in CourseMode.modes_for_course( course_id=course.id, include_expired=True ) if mode.slug != 'audit' ] ...
-
Then update the code, remove part
if mode.slug != 'audit'
. See the following codes snippet:... course_modes = [ mode.slug for mode in CourseMode.modes_for_course( course_id=course.id, include_expired=True ) ] ...
-
Restart CMS services.