Last active
October 7, 2015 01:52
-
-
Save pwilkins/f09b3860cd5250bd67fe to your computer and use it in GitHub Desktop.
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 | |
FEATURES['ENABLE_SYSADMIN_DASHBOARD'] = True | |
##### Custom Courses for EdX ##### | |
FEATURES['CUSTOM_COURSES_EDX'] = True | |
if FEATURES.get('CUSTOM_COURSES_EDX'): | |
INSTALLED_APPS += ('ccx',) | |
FIELD_OVERRIDE_PROVIDERS += ( | |
'ccx.overrides.CustomCoursesForEdxOverrideProvider', | |
) | |
# http for use with local Gradebook service | |
# your ip can't be localhost here since edX won't see it | |
# FEATURES['REMOTE_GRADEBOOK_URL'] = 'http://<your_ip>:5000/edx_grades' | |
# https://groups.google.com/forum/#!topic/edx-code/zn7ai5nle_w | |
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]) | |
INSTALLED_APPS = tuple_without(INSTALLED_APPS, ['debug_toolbar', ]) | |
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