mirror of https://github.com/snachodog/mybuddy.git
Use static_src directories to prevent collisions with Django's collectstatic.
This commit is contained in:
parent
dd6eb954c3
commit
78ebc87265
|
@ -108,10 +108,6 @@ STATIC_URL = '/static/'
|
||||||
|
|
||||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||||
|
|
||||||
STATICFILES_DIRS = [
|
|
||||||
os.path.join(BASE_DIR, 'babyblotter', 'static'),
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
# Django Rest Framework
|
# Django Rest Framework
|
||||||
# http://www.django-rest-framework.org/#
|
# http://www.django-rest-framework.org/#
|
||||||
|
|
|
@ -26,10 +26,10 @@ module.exports = {
|
||||||
'node_modules/tempusdominus-bootstrap-4/build/js/tempusdominus-bootstrap-4.js'
|
'node_modules/tempusdominus-bootstrap-4/build/js/tempusdominus-bootstrap-4.js'
|
||||||
],
|
],
|
||||||
app: [
|
app: [
|
||||||
'babyblotter/static_site/js/babyblotter.js',
|
'babyblotter/static_src/js/babyblotter.js',
|
||||||
'api/static/js/*.js',
|
'api/static_src/js/*.js',
|
||||||
'core/static/js/*.js',
|
'core/static_src/js/*.js',
|
||||||
'dashboard/static/js/*.js'
|
'dashboard/static_src/js/*.js'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
stylesConfig: {
|
stylesConfig: {
|
||||||
|
@ -38,17 +38,15 @@ module.exports = {
|
||||||
'node_modules/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css',
|
'node_modules/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.css',
|
||||||
'node_modules/font-awesome/css/font-awesome.css'
|
'node_modules/font-awesome/css/font-awesome.css'
|
||||||
],
|
],
|
||||||
app: 'babyblotter/static_site/scss/babyblotter.scss'
|
app: 'babyblotter/static_src/scss/babyblotter.scss'
|
||||||
},
|
},
|
||||||
watchConfig: {
|
watchConfig: {
|
||||||
scriptsGlob: [
|
scriptsGlob: [
|
||||||
'**/static/js/**/*.js',
|
'**/static_src/js/**/*.js',
|
||||||
'babyblotter/static_site/js/**/*.js',
|
|
||||||
'!babyblotter/static/js/'
|
'!babyblotter/static/js/'
|
||||||
],
|
],
|
||||||
stylesGlob: [
|
stylesGlob: [
|
||||||
'**/static/scss/**/*.scss',
|
'**/static_src/scss/**/*.scss'
|
||||||
'babyblotter/static_site/scss/**/*.scss'
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue