Disable the need for collectstatic during local dev

This commit is contained in:
Jake Howard 2022-06-12 14:48:01 +01:00
parent bea6b53bd3
commit b997350283
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 2 additions and 4 deletions

View file

@ -21,8 +21,5 @@ install:
@manage +ARGS:
./manage.py {{ ARGS }}
@collectstatic:
./manage.py collectstatic --noinput -v2 --clear
test *ARGS:
./manage.py test {{ ARGS }}

View file

@ -110,6 +110,7 @@ STATICFILES_DIRS = [
BASE_DIR / "static" / "build",
]
if not DEBUG:
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
STATIC_ROOT = BASE_DIR / "collected-static"