dev.py 964 Bytes
Newer Older
1 2 3 4 5 6
"""
Settings for the LMS that runs alongside the CMS on AWS
"""

from ..dev import *

7 8 9
MITX_FEATURES['AUTH_USE_MIT_CERTIFICATES'] = False

SUBDOMAIN_BRANDING['edge'] = 'edge'
10
SUBDOMAIN_BRANDING['preview.edge'] = 'edge'
11 12
VIRTUAL_UNIVERSITIES = ['edge']

13 14 15 16 17 18 19 20 21
modulestore_options = {
    'default_class': 'xmodule.raw_module.RawDescriptor',
    'host': 'localhost',
    'db': 'xmodule',
    'collection': 'modulestore',
    'fs_root': DATA_DIR,
    'render_template': 'mitxmako.shortcuts.render_to_string',
}

22 23 24
MODULESTORE = {
    'default': {
        'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore',
25
        'OPTIONS': modulestore_options
26
    },
27
}
28 29 30 31 32

CONTENTSTORE = {
    'ENGINE': 'xmodule.contentstore.mongo.MongoContentStore',
    'OPTIONS': {
        'host': 'localhost',
33
        'db': 'xcontent',
34 35
    }
}
36 37 38 39 40 41 42 43 44 45

INSTALLED_APPS += (
    # Mongo perf stats
    'debug_toolbar_mongo',
    )


DEBUG_TOOLBAR_PANELS += (
   'debug_toolbar_mongo.panel.MongoDebugPanel',
   )