d2947cfef0
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
17 lines
758 B
Diff
17 lines
758 B
Diff
diff --git a/recipes/settings.py b/recipes/settings.py
|
|
index 5676fe0a..6c6f1747 100644
|
|
--- a/recipes/settings.py
|
|
+++ b/recipes/settings.py
|
|
@@ -426,10 +426,10 @@ if os.getenv('S3_ACCESS_KEY', ''):
|
|
AWS_S3_CUSTOM_DOMAIN = os.getenv('S3_CUSTOM_DOMAIN', '')
|
|
|
|
MEDIA_URL = os.getenv('MEDIA_URL', '/media/')
|
|
- MEDIA_ROOT = os.path.join(BASE_DIR, "mediafiles")
|
|
+ MEDIA_ROOT = os.getenv('MEDIA_ROOT', os.path.join(BASE_DIR, "mediafiles"))
|
|
else:
|
|
MEDIA_URL = os.getenv('MEDIA_URL', '/media/')
|
|
- MEDIA_ROOT = os.path.join(BASE_DIR, "mediafiles")
|
|
+ MEDIA_ROOT = os.getenv('MEDIA_ROOT', os.path.join(BASE_DIR, "mediafiles"))
|
|
|
|
# Serve static files with gzip
|
|
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|