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

@@ -28,22 +28,23 @@ DOC_STORE_CONFIG = {
'collection': 'modulestore',
}
modulestore_options = dict({
modulestore_options = {
'default_class': 'xmodule.raw_module.RawDescriptor',
'fs_root': DATA_DIR,
'render_template': 'mitxmako.shortcuts.render_to_string',
}, **DOC_STORE_CONFIG)
}
MODULESTORE = {
'default': {
'ENGINE': 'xmodule.modulestore.mongo.MongoModuleStore',
'DOC_STORE_CONFIG': DOC_STORE_CONFIG,
'OPTIONS': modulestore_options
},
}
CONTENTSTORE = {
'ENGINE': 'xmodule.contentstore.mongo.MongoContentStore',
'OPTIONS': {
'DOC_STORE_CONFIG': {
'host': 'localhost',
'db': 'xcontent',
}