Browse Source

Speed up build by reducing staticfiles scope

pull/207/head
Clemens Wolff 5 years ago
parent
commit
4b7dc702af
1 changed files with 7 additions and 1 deletions
  1. 8
      app/app/settings.py

8
app/app/settings.py

@ -94,7 +94,13 @@ TEMPLATES = [
]
STATICFILES_DIRS = [
path.join(BASE_DIR, 'server/static'),
static_path
for static_path in (
path.join(BASE_DIR, 'server', 'static', 'bundle'),
path.join(BASE_DIR, 'server', 'static', 'css'),
path.join(BASE_DIR, 'server', 'static', 'images'),
)
if path.isdir(static_path)
]
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'

Loading…
Cancel
Save