From f2f4f37cb38b2aad4086b9278f11f43cb7038b9b Mon Sep 17 00:00:00 2001 From: Felix Rindt Date: Sun, 6 Aug 2023 19:47:57 +0200 Subject: [PATCH] make static root absolute --- ephios/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ephios/settings.py b/ephios/settings.py index 31131d532..89bcb079b 100644 --- a/ephios/settings.py +++ b/ephios/settings.py @@ -194,7 +194,11 @@ # https://docs.djangoproject.com/en/3.0/howto/static-files/ STATIC_URL = env.str("STATIC_URL") + STATIC_ROOT = env.str("STATIC_ROOT") +if not os.path.isabs(STATIC_ROOT): + STATIC_ROOT = os.path.join(BASE_DIR, STATIC_ROOT) + STATICFILES_DIRS = (os.path.join(BASE_DIR, "ephios/static"),) STATICFILES_FINDERS = ( "django.contrib.staticfiles.finders.FileSystemFinder",