2018-05-16 17:02:44 +00:00
|
|
|
from ..devstack import *
|
2017-12-26 00:16:35 +00:00
|
|
|
|
2018-05-16 17:02:44 +00:00
|
|
|
# Load module store settings from config files
|
2017-12-26 00:16:35 +00:00
|
|
|
update_module_store_settings(MODULESTORE, doc_store_settings=DOC_STORE_CONFIG)
|
|
|
|
|
2018-05-16 17:02:44 +00:00
|
|
|
# Set uploaded media file path
|
2017-12-26 00:16:35 +00:00
|
|
|
MEDIA_ROOT = "/openedx/data/uploads/"
|
2018-05-16 17:02:44 +00:00
|
|
|
|
2018-04-21 10:41:04 +00:00
|
|
|
# Change syslog-based loggers which don't work inside docker containers
|
|
|
|
LOGGING['handlers']['local'] = LOGGING['handlers']['console'].copy()
|
|
|
|
LOGGING['handlers']['tracking'] = LOGGING['handlers']['console'].copy()
|
2017-12-26 00:16:35 +00:00
|
|
|
|
|
|
|
# Create folders if necessary
|
2018-05-16 17:02:44 +00:00
|
|
|
import os
|
2017-12-26 00:16:35 +00:00
|
|
|
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE]:
|
|
|
|
if not os.path.exists(folder):
|
|
|
|
os.makedirs(folder)
|