Skip to content

Instantly share code, notes, and snippets.

@jramnai
Created July 24, 2020 04:46
Show Gist options
  • Save jramnai/e7bc81242910abf8d912e4c895a08afb to your computer and use it in GitHub Desktop.
Save jramnai/e7bc81242910abf8d912e4c895a08afb to your computer and use it in GitHub Desktop.
Get open edX course from modulestore
from xmodule.modulestore.django import modulestore
from opaque_keys.edx.keys import CourseKey
course_id = 'course-v1:edX+DemoX+Demo_Course'
course = modulestore().get_course(CourseKey.from_string(course_id))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment