6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-17 10:35:12 +00:00
tutor/config/openedx/universal/cms/development.py
Régis Behmo ac7fe77280 hawthorn.1 release
From a deployment perspective, this release comes with an upgrade of the
cs_comments_service (forums) and a change to the logging configuration.
2018-08-08 15:02:49 +02:00

18 lines
595 B
Python

from ..devstack import *
# Load module store settings from config files
update_module_store_settings(MODULESTORE, doc_store_settings=DOC_STORE_CONFIG)
# Set uploaded media file path
MEDIA_ROOT = "/openedx/data/uploads/"
# 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()
# Create folders if necessary
import os
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE]:
if not os.path.exists(folder):
os.makedirs(folder)