2018-05-16 19:02:44 +02:00
|
|
|
from ..devstack import *
|
2017-12-26 01:16:35 +01:00
|
|
|
|
2018-11-28 19:22:25 +01:00
|
|
|
INSTALLED_APPS.remove('openedx.core.djangoapps.datadog.apps.DatadogConfig')
|
|
|
|
|
2018-05-16 19:02:44 +02:00
|
|
|
# Load module store settings from config files
|
2017-12-26 01:16:35 +01:00
|
|
|
update_module_store_settings(MODULESTORE, doc_store_settings=DOC_STORE_CONFIG)
|
|
|
|
|
2018-05-16 19:02:44 +02:00
|
|
|
# Set uploaded media file path
|
2017-12-26 01:16:35 +01:00
|
|
|
MEDIA_ROOT = "/openedx/data/uploads/"
|
2018-05-16 19:02:44 +02:00
|
|
|
|
2018-04-21 12:41:04 +02:00
|
|
|
# Change syslog-based loggers which don't work inside docker containers
|
2018-09-15 11:55:42 +02:00
|
|
|
LOGGING['handlers']['local'] = {'class': 'logging.NullHandler'}
|
|
|
|
LOGGING['handlers']['tracking'] = {
|
|
|
|
'level': 'DEBUG',
|
|
|
|
'class': 'logging.StreamHandler',
|
|
|
|
'formatter': 'standard',
|
|
|
|
}
|
2017-12-26 01:16:35 +01:00
|
|
|
|
2018-08-27 23:19:16 +02:00
|
|
|
# Fix media files paths
|
|
|
|
VIDEO_IMAGE_SETTINGS['STORAGE_KWARGS']['location'] = MEDIA_ROOT
|
|
|
|
VIDEO_TRANSCRIPTS_SETTINGS['STORAGE_KWARGS']['location'] = MEDIA_ROOT
|
|
|
|
PROFILE_IMAGE_BACKEND['options']['location'] = os.path.join(MEDIA_ROOT, 'profile-images/')
|
2018-11-20 11:24:52 +01:00
|
|
|
|
|
|
|
ORA2_FILEUPLOAD_BACKEND = 'filesystem'
|
|
|
|
ORA2_FILEUPLOAD_ROOT = '/openedx/data/ora2'
|
|
|
|
ORA2_FILEUPLOAD_CACHE_NAME = 'ora2-storage'
|
|
|
|
|
2018-12-07 19:30:30 +01:00
|
|
|
LOCALE_PATHS.append('/openedx/locale')
|
|
|
|
|
2018-11-20 11:24:52 +01:00
|
|
|
# Create folders if necessary
|
|
|
|
import os
|
|
|
|
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]:
|
|
|
|
if not os.path.exists(folder):
|
|
|
|
os.makedirs(folder)
|