From f2720e4fb219026cc3e51f763780facbf74d2115 Mon Sep 17 00:00:00 2001 From: jedi Date: Sat, 18 Nov 2023 21:11:47 +0100 Subject: [PATCH] load MEDIA_ROOT AND STATIC_ROOT from .env --- core/core/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core/settings.py b/core/core/settings.py index fc7a722..a9c6323 100644 --- a/core/core/settings.py +++ b/core/core/settings.py @@ -142,10 +142,10 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.2/howto/static-files/ -STATIC_ROOT = 'staticfiles' +STATIC_ROOT = os.getenv('STATIC_ROOT') STATIC_URL = '/static/' -MEDIA_ROOT = 'userfiles' +MEDIA_ROOT = os.getenv('MEDIA_ROOT') MEDIA_URL = '/media/' STORAGES = {