mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-09-29 20:59:01 +00:00
De-duplicate asset settings
This commit is contained in:
parent
56850683b3
commit
cb0e2c509d
@ -1,21 +1,6 @@
|
|||||||
"""
|
{% include "build/openedx/settings/partials/assets.py" %}
|
||||||
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'
|
|
||||||
STATIC_ROOT = path(STATIC_ROOT_BASE) / 'studio'
|
STATIC_ROOT = path(STATIC_ROOT_BASE) / 'studio'
|
||||||
WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = STATIC_ROOT / "webpack-stats.json"
|
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__)
|
derive_settings(__name__)
|
||||||
|
@ -1,20 +1,6 @@
|
|||||||
"""
|
{% include "build/openedx/settings/partials/assets.py" %}
|
||||||
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'
|
|
||||||
STATIC_ROOT = path(STATIC_ROOT_BASE)
|
STATIC_ROOT = path(STATIC_ROOT_BASE)
|
||||||
WEBPACK_LOADER['DEFAULT']['STATS_FILE'] = STATIC_ROOT / "webpack-stats.json"
|
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__)
|
derive_settings(__name__)
|
||||||
|
17
tutor/templates/build/openedx/settings/partials/assets.py
Normal file
17
tutor/templates/build/openedx/settings/partials/assets.py
Normal 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": {},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user