Simplify modulestore configuration

This commit is contained in:
Régis Behmo 2017-07-19 09:25:33 +02:00
parent b6aacd4812
commit 199626c434
2 changed files with 4 additions and 39 deletions

View File

@ -31,43 +31,5 @@
"PORT": "3306",
"ATOMIC_REQUESTS": true
}
},
"MODULESTORE": {
"default": {
"ENGINE": "xmodule.modulestore.mixed.MixedModuleStore",
"OPTIONS": {
"mappings": {},
"stores": [
{
"NAME": "split",
"ENGINE": "xmodule.modulestore.split_mongo.split_draft.DraftVersioningModuleStore",
"DOC_STORE_CONFIG": {
"host": "mongodb",
"db": "xmodule",
"collection": "modulestore"
},
"OPTIONS": {
"default_class": "xmodule.hidden_module.HiddenDescriptor",
"fs_root": "/openedx/data",
"render_template": "edxmako.shortcuts.render_to_string"
}
},
{
"NAME": "draft",
"ENGINE": "xmodule.modulestore.mongo.DraftMongoModuleStore",
"DOC_STORE_CONFIG": {
"host": "mongodb",
"db": "xmodule",
"collection": "modulestore"
},
"OPTIONS": {
"default_class": "xmodule.hidden_module.HiddenDescriptor",
"fs_root": "/opt/openedx/data",
"render_template": "edxmako.shortcuts.render_to_string"
}
}
]
}
}
}
}
}

View File

@ -1,4 +1,7 @@
from .aws import *
update_module_store_settings(MODULESTORE, doc_store_settings=DOC_STORE_CONFIG)
MEDIA_ROOT = "/openedx/uploads/"
FEATURES['ENABLE_DISCUSSION_SERVICE'] = False