From b3842e5d90a5bcbab42e38f6602468de2d0112e0 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sun, 13 Jan 2019 01:12:58 -0200 Subject: [PATCH] adequa staticfiles_dirs e ignora webpack-stats --- .gitignore | 1 + sapl/settings.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c656b3b8f..69ef6694a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ __pycache__/ # Nodejs node_modules/ yarn.lock +webpack-stats.json # Distribution / packaging .Python diff --git a/sapl/settings.py b/sapl/settings.py index cf609f6ea..cb6db9d4e 100755 --- a/sapl/settings.py +++ b/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',