Last active
November 5, 2015 19:29
-
-
Save giocalitri/90e5e73e528480dbc994 to your computer and use it in GitHub Desktop.
private.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import | |
from .common import INSTALLED_APPS, MIDDLEWARE_CLASSES | |
def tuple_without(source_tuple, exclusion_list): | |
""" | |
Return new tuple excluding any entries in the exclusion list. | |
Needed because tuples are immutable. Order preserved. | |
""" | |
return tuple([i for i in source_tuple if i not in exclusion_list]) | |
FEATURES['ENABLE_SYSADMIN_DASHBOARD'] = True | |
FEATURES['CUSTOM_COURSES_EDX'] = True | |
INSTALLED_APPS = tuple_without(INSTALLED_APPS, ['debug_toolbar', ]) | |
INSTALLED_APPS += ('edx_sga',) | |
##### Custom Courses for EdX ##### | |
if FEATURES.get('CUSTOM_COURSES_EDX'): | |
INSTALLED_APPS += ('ccx',) | |
FIELD_OVERRIDE_PROVIDERS += ( | |
'ccx.overrides.CustomCoursesForEdxOverrideProvider', | |
) | |
CCX_MAX_STUDENTS_ALLOWED = 2 | |
MIDDLEWARE_CLASSES = tuple_without(MIDDLEWARE_CLASSES, [ | |
'django_comment_client.utils.QueryCountDebugMiddleware', | |
'debug_toolbar.middleware.DebugToolbarMiddleware', | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment