Skip to content

Instantly share code, notes, and snippets.

@carsongee
Last active August 29, 2015 14:03

Revisions

  1. carsongee renamed this gist Jul 11, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. carsongee created this gist Jul 9, 2014.
    34 changes: 34 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    from .devstack import * # pylint: disable=wildcard-import, unused-wildcard-import
    from .common import INSTALLED_APPS, MIDDLEWARE_CLASSES

    FEATURES['ENABLE_SYSADMIN_DASHBOARD'] = True

    MODULESTORE = {
    'default': {
    'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore',
    'OPTIONS': {
    "collection": "modulestore",
    "db": "edxapp",
    "default_class": "xmodule.hidden_module.HiddenDescriptor",
    "fs_root": "/edx/var/edxapp/data",
    "host": "localhost",
    "password": "password",
    "port": 27017,
    "render_template": "edxmako.shortcuts.render_to_string",
    "user": "edxapp"
    },
    'DOC_STORE_CONFIG': DOC_STORE_CONFIG,
    }
    }

    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', ])
    INSTALLED_APPS += ('edx_sga',)
    MIDDLEWARE_CLASSES = tuple_without(MIDDLEWARE_CLASSES, [
    'django_comment_client.utils.QueryCountDebugMiddleware',
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    ])