6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-16 07:40:44 +00:00
tutor/openedx/settings/lms/assets.py
Régis Behmo 3b215c9f88 Package static assets inside the openedx image
This allows us to deploy much faster: all we have to do is to copy the
assets from the container to the shared volume.

We also changed the way themes are managed: similarly to static assets,
they are now packaged inside the docker image.
2018-12-25 19:25:23 +01:00

21 lines
502 B
Python

"""
Bare minimum settings for collecting production assets.
"""
from ..common import *
from openedx.core.lib.derived import derive_settings
COMPREHENSIVE_THEME_DIRS.append('/openedx/themes')
STATIC_ROOT_BASE = '/openedx/data/staticfiles'
STATIC_ROOT = path(STATIC_ROOT_BASE)
WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = STATIC_ROOT / "webpack-stats.json"
SECRET_KEY = 'secret'
XQUEUE_INTERFACE = {
'django_auth': None,
'url': None,
}
DATABASES = {
"default": {},
}
derive_settings(__name__)