summaryrefslogtreecommitdiffstats
path: root/takahe/settings
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 19:31:00 -0700
committerAndrew Godwin2022-11-17 17:55:50 -0700
commit2a3690d1c148da5dd799052403ba7290e1fb7de0 (patch)
tree6a1c92cdbea7ee2e307a99dd114610c83b33f82a /takahe/settings
parent291d7e404e12e1d017403242f8ed199046f0904c (diff)
downloadtakahe-2a3690d1c148da5dd799052403ba7290e1fb7de0.tar.gz
takahe-2a3690d1c148da5dd799052403ba7290e1fb7de0.tar.bz2
takahe-2a3690d1c148da5dd799052403ba7290e1fb7de0.zip
Return images and summary in actor
Diffstat (limited to 'takahe/settings')
-rw-r--r--takahe/settings/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/takahe/settings/base.py b/takahe/settings/base.py
index b98b9a0..dd89818 100644
--- a/takahe/settings/base.py
+++ b/takahe/settings/base.py
@@ -108,5 +108,7 @@ STATICFILES_DIRS = [
ALLOWED_HOSTS = ["*"]
-MEDIA_ROOT = BASE_DIR / "media"
-MEDIA_URL = "/media/"
+
+# Note that this MUST be a fully qualified URL in production
+MEDIA_URL = os.environ.get("TAKAHE_MEDIA_URL", "/media/")
+MEDIA_ROOT = os.environ.get("TAKAHE_MEDIA_ROOT", BASE_DIR / "media")