From 4afedbb0015afb0ea871782af5451a5ba88095ce Mon Sep 17 00:00:00 2001 From: Carson Gee Date: Wed, 15 Apr 2015 10:39:32 -0400 Subject: [PATCH] Add CCX configuration to yaml_config.py --- lms/envs/yaml_config.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lms/envs/yaml_config.py b/lms/envs/yaml_config.py index 0a1d120259..99a609f9f3 100644 --- a/lms/envs/yaml_config.py +++ b/lms/envs/yaml_config.py @@ -300,3 +300,17 @@ BROKER_URL = "{0}://{1}:{2}@{3}/{4}".format(CELERY_BROKER_TRANSPORT, # Grades download GRADES_DOWNLOAD_ROUTING_KEY = HIGH_MEM_QUEUE + +##### Custom Courses for EdX ##### +if FEATURES.get('CUSTOM_COURSES_EDX'): + INSTALLED_APPS += ('ccx',) + MIDDLEWARE_CLASSES += ('ccx.overrides.CcxMiddleware',) + FIELD_OVERRIDE_PROVIDERS += ( + 'ccx.overrides.CustomCoursesForEdxOverrideProvider', + ) + +##### Individual Due Date Extensions ##### +if FEATURES.get('INDIVIDUAL_DUE_DATES'): + FIELD_OVERRIDE_PROVIDERS += ( + 'courseware.student_field_overrides.IndividualStudentOverrideProvider', + )