From b997350283349aa69565f97da9c076c372db2365 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 12 Jun 2022 14:48:01 +0100 Subject: [PATCH] Disable the need for collectstatic during local dev --- justfile | 3 --- website/settings.py | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index d7bd0bd..158b6f4 100644 --- a/justfile +++ b/justfile @@ -21,8 +21,5 @@ install: @manage +ARGS: ./manage.py {{ ARGS }} -@collectstatic: - ./manage.py collectstatic --noinput -v2 --clear - test *ARGS: ./manage.py test {{ ARGS }} diff --git a/website/settings.py b/website/settings.py index ade33e6..df066bc 100644 --- a/website/settings.py +++ b/website/settings.py @@ -110,7 +110,8 @@ STATICFILES_DIRS = [ BASE_DIR / "static" / "build", ] -STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" +if not DEBUG: + STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" STATIC_ROOT = BASE_DIR / "collected-static" STATIC_URL = "/static/"