Segregate the mongo db config from the modulestore config

as a first step to separating db connection from modeling
and to support location mapper and contentstore using same db config as modulestore
This commit is contained in:
Don Mitchell
2013-10-07 16:09:55 -04:00
parent 4bb9dcf190
commit 44d0494d33
28 changed files with 183 additions and 104 deletions

View File

@@ -13,11 +13,13 @@ GITHUB_REPO_ROOT = ENV_ROOT / "data"
MODULESTORE = {
'default': {
'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore',
'OPTIONS': {
'default_class': 'xmodule.raw_module.RawDescriptor',
'DOC_STORE_CONFIG': {
'host': 'localhost',
'db': 'xmodule',
'collection': 'modulestore',
},
'OPTIONS': {
'default_class': 'xmodule.raw_module.RawDescriptor',
'fs_root': GITHUB_REPO_ROOT,
'render_template': 'mitxmako.shortcuts.render_to_string',
}