7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-28 17:33:29 +00:00

De-duplicate asset settings

This commit is contained in:
Régis Behmo 2019-10-07 16:37:01 +02:00
parent 56850683b3
commit cb0e2c509d
3 changed files with 19 additions and 31 deletions

View File

@ -1,21 +1,6 @@
"""
Bare minimum settings for collecting production assets.
"""
from ..common import *
from openedx.core.lib.derived import derive_settings
{% include "build/openedx/settings/partials/assets.py" %}
COMPREHENSIVE_THEME_DIRS.append('/openedx/themes')
STATIC_ROOT_BASE = '/openedx/staticfiles'
STATIC_ROOT = path(STATIC_ROOT_BASE) / 'studio'
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__)

View File

@ -1,20 +1,6 @@
"""
Bare minimum settings for collecting production assets.
"""
from ..common import *
from openedx.core.lib.derived import derive_settings
{% include "build/openedx/settings/partials/assets.py" %}
COMPREHENSIVE_THEME_DIRS.append('/openedx/themes')
STATIC_ROOT_BASE = '/openedx/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__)

View File

@ -0,0 +1,17 @@
"""
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/staticfiles'
SECRET_KEY = 'secret'
XQUEUE_INTERFACE = {
'django_auth': None,
'url': None,
}
DATABASES = {
"default": {},
}