Skip to content

Instantly share code, notes, and snippets.

@jtriley
Last active Aug 29, 2015
Embed
What would you like to do?
$EDX_PLATFORM_ROOT/lms/envs/private.py
from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import
from .common import INSTALLED_APPS, MIDDLEWARE_CLASSES
FEATURES['ENABLE_SYSADMIN_DASHBOARD'] = True
FEATURES['INDIVIDUAL_DUE_DATES'] = True
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