6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-18 11:05:17 +00:00
tutor/config/openedx/universal/lms/development.py

22 lines
731 B
Python
Raw Normal View History

from ..devstack import *
2017-12-26 00:16:35 +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)
# Set uploaded media file path
2017-12-26 00:16:35 +00:00
MEDIA_ROOT = "/openedx/data/uploads/"
# Activate dev_env for logging, otherwise rsyslog is required (but it is
# not available in docker).
2017-12-26 00:16:35 +00:00
LOGGING = get_logger_config(LOG_DIR,
logging_env=ENV_TOKENS['LOGGING_ENV'],
debug=False,
dev_env=True,
service_variant=SERVICE_VARIANT)
# Create folders if necessary
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)