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/"