Disable the need for collectstatic during local dev
This commit is contained in:
parent
bea6b53bd3
commit
b997350283
2 changed files with 2 additions and 4 deletions
3
justfile
3
justfile
|
@ -21,8 +21,5 @@ install:
|
|||
@manage +ARGS:
|
||||
./manage.py {{ ARGS }}
|
||||
|
||||
@collectstatic:
|
||||
./manage.py collectstatic --noinput -v2 --clear
|
||||
|
||||
test *ARGS:
|
||||
./manage.py test {{ ARGS }}
|
||||
|
|
|
@ -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/"
|
||||
|
|
Loading…
Reference in a new issue