Skip to content

Commit 9c40100

Browse files
author
“OMosimege”
committed
Variable name change for staticfiles storage, to a variable not used by django
1 parent a9c7b8b commit 9c40100

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/app/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@
137137

138138

139139
if DEBUG:
140-
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
140+
_STATICFILES_BACKEND = "django.contrib.staticfiles.storage.StaticFilesStorage"
141141
else:
142-
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
142+
_STATICFILES_BACKEND = "whitenoise.storage.CompressedManifestStaticFilesStorage"
143143

144144

145145
STATIC_URL = "/static/"
@@ -153,7 +153,7 @@
153153
"BACKEND": "django.core.files.storage.FileSystemStorage",
154154
},
155155
"staticfiles": {
156-
"BACKEND": STATICFILES_STORAGE,
156+
"BACKEND": _STATICFILES_BACKEND,
157157
},
158158
}
159159

0 commit comments

Comments
 (0)