Browse Source

adequa staticfiles_dirs e ignora webpack-stats

pull/2485/head
Leandro Roberto 7 years ago
parent
commit
b3842e5d90
  1. 1
      .gitignore
  2. 10
      sapl/settings.py

1
.gitignore

@ -9,6 +9,7 @@ __pycache__/
# Nodejs
node_modules/
yarn.lock
webpack-stats.json
# Distribution / packaging
.Python

10
sapl/settings.py

@ -277,7 +277,15 @@ WEBPACK_LOADER = {
STATIC_URL = '/static/'
STATIC_ROOT = PROJECT_DIR.child("collected_static")
STATICFILES_DIRS = (BASE_DIR.child("static"),)
# STATICFILES_DIRS = (BASE_DIR.child("static"),)
STATICFILES_DIRS = (
# BASE_DIR.child("static"),
FRONTEND_DIR.child('bundle').child('dist'),
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',

Loading…
Cancel
Save