Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: course outline not found issue for ccx courses
Browse files Browse the repository at this point in the history
Anas12091101 committed Jan 17, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 1593923 commit f374d81
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
@@ -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)

5 changes: 4 additions & 1 deletion lms/envs/test.py
Original file line number Diff line number Diff line change
@@ -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 = {

0 comments on commit f374d81

Please sign in to comment.