Skip to content

Commit

Permalink
fix: course outline not found issue for ccx courses
Browse files Browse the repository at this point in the history
  • Loading branch information
Anas12091101 committed Jan 17, 2025
1 parent 7419ae8 commit 4fdfece
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,13 @@ def get_env_setting(setting):

##### Custom Courses for EdX #####
if FEATURES['CUSTOM_COURSES_EDX']:
INSTALLED_APPS += ['lms.djangoapps.ccx', 'openedx.core.djangoapps.ccxcon.apps.CCXConnectorConfig']
INSTALLED_APPS += ['lms.djangoapps.ccx', 'openedx.core.djangoapps.ccxcon.apps.CCXConnectorConfig',
'cms.djangoapps.contentstore.apps.ContentstoreConfig', 'openedx.core.djangoapps.content.search',
'openedx.core.djangoapps.content_staging']
MODULESTORE_FIELD_OVERRIDE_PROVIDERS += (
'lms.djangoapps.ccx.overrides.CustomCoursesForEdxOverrideProvider',
)
COURSE_IMPORT_EXPORT_STORAGE = DEFAULT_FILE_STORAGE

FIELD_OVERRIDE_PROVIDERS = tuple(FIELD_OVERRIDE_PROVIDERS)

Expand Down
5 changes: 4 additions & 1 deletion lms/envs/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,11 @@
FACEBOOK_API_VERSION = "v2.8"

######### custom courses #########
INSTALLED_APPS += ['lms.djangoapps.ccx', 'openedx.core.djangoapps.ccxcon.apps.CCXConnectorConfig']
INSTALLED_APPS += ['lms.djangoapps.ccx', 'openedx.core.djangoapps.ccxcon.apps.CCXConnectorConfig',
'cms.djangoapps.contentstore.apps.ContentstoreConfig', 'openedx.core.djangoapps.content.search',
'openedx.core.djangoapps.content_staging']
FEATURES['CUSTOM_COURSES_EDX'] = True
COURSE_IMPORT_EXPORT_STORAGE = 'django.core.files.storage.FileSystemStorage'

# Set dummy values for profile image settings.
PROFILE_IMAGE_BACKEND = {
Expand Down

0 comments on commit 4fdfece

Please sign in to comment.