Skip to content

Commit 8de12bf

Browse files
fix: add STATIC_ROOT and whitenoise STORAGES to settings_aws.py for collectstatic
1 parent d7a7610 commit 8de12bf

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

app/peopledepot/settings_aws.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
ROOT_URLCONF = "peopledepot.urls_aws"
44

5+
STATIC_ROOT = BASE_DIR / "staticfiles"
6+
STORAGES = {
7+
"default": {
8+
"BACKEND": "django.core.files.storage.FileSystemStorage",
9+
},
10+
"staticfiles": {
11+
"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
12+
},
13+
}
14+
515
INSTALLED_APPS = [
616
"django.contrib.admin",
717
"django.contrib.auth",

0 commit comments

Comments
 (0)