From b44c8186780cc5fd887360ba72017a60d0a72828 Mon Sep 17 00:00:00 2001 From: Kraust Date: Fri, 10 May 2024 15:41:13 -0400 Subject: [PATCH] Update STATIC_URL to get it from env (#28) * Working on a landing page. * Update STATIC_URL to get it from env --- OSCR_django/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OSCR_django/settings.py b/OSCR_django/settings.py index 17b3a48..0b77830 100644 --- a/OSCR_django/settings.py +++ b/OSCR_django/settings.py @@ -155,8 +155,7 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.2/howto/static-files/ - -STATIC_URL = "static/" +STATIC_URL = os.environ.get("STATIC_URL", "static/") # Default primary key field type # https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field