From 89f21a20184bdc69163a30cb5426b4f851372b35 Mon Sep 17 00:00:00 2001 From: ndu Date: Thu, 19 Dec 2024 06:59:27 +0100 Subject: [PATCH] chore(fix) add fix --- server/core/config/base.py | 2 ++ server/core/config/production.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/server/core/config/base.py b/server/core/config/base.py index 3428b8e..0caaaf6 100644 --- a/server/core/config/base.py +++ b/server/core/config/base.py @@ -174,6 +174,8 @@ STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') +MEDIA_ROOT = os.path.join(BASE_DIR, 'media') + STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static'), ] diff --git a/server/core/config/production.py b/server/core/config/production.py index dbc8dae..eac9dc6 100644 --- a/server/core/config/production.py +++ b/server/core/config/production.py @@ -1,5 +1,7 @@ from .base import * +MEDIA_URL = 'https://cms.2077.xyz/media/' + DEBUG = bool(config('DJANGO_DEBUG', default=False)) ALLOWED_HOSTS = ['74.119.195.253', 'cms.2077.xyz']