Skip to content

Commit

Permalink
Merge pull request #42 from SADiLaR/feature/staticfiles_storage_settings
Browse files Browse the repository at this point in the history
Change staticfiles storage variable name
  • Loading branch information
OnaMosimege authored May 7, 2024
2 parents a9c7b8b + 9c40100 commit 49b764e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@


if DEBUG:
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
_STATICFILES_BACKEND = "django.contrib.staticfiles.storage.StaticFilesStorage"
else:
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
_STATICFILES_BACKEND = "whitenoise.storage.CompressedManifestStaticFilesStorage"


STATIC_URL = "/static/"
Expand All @@ -153,7 +153,7 @@
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": STATICFILES_STORAGE,
"BACKEND": _STATICFILES_BACKEND,
},
}

Expand Down

0 comments on commit 49b764e

Please sign in to comment.