From 9caeb2b7ec6e55c1cf716b9f074862ad39b11afd Mon Sep 17 00:00:00 2001 From: Neda Moeini <neda.moeini@geant.org> Date: Tue, 3 Dec 2024 17:56:36 +0100 Subject: [PATCH] Get the STATIC_ROOT from env vars --- sage_validation/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sage_validation/settings.py b/sage_validation/settings.py index db358aa..22cb5ec 100644 --- a/sage_validation/settings.py +++ b/sage_validation/settings.py @@ -123,7 +123,7 @@ INTERNAL_IPS = [ "127.0.0.1", ] -STATIC_ROOT = BASE_DIR / "staticfiles" +STATIC_ROOT = os.getenv("STATIC_ROOT", BASE_DIR / "staticfiles") STATICFILES_DIRS = [ BASE_DIR / "static", ] -- GitLab