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