From aeb2e44fcbc4f434facc98adcdbffc03502ab80e Mon Sep 17 00:00:00 2001 From: Ching Date: Mon, 4 Oct 2021 23:50:14 +0800 Subject: [PATCH] feat(settings): [A] add stats file settings [A] add stats file settings Signed-off-by: Ching --- dsite/settings.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dsite/settings.py b/dsite/settings.py index e020ff7..d77f5da 100644 --- a/dsite/settings.py +++ b/dsite/settings.py @@ -40,5 +40,13 @@ CORS_ALLOW_HEADERS = [ CORS_ALLOW_HEADERS = ('*') +BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) PROJECT_DIR = os.path.dirname(os.path.abspath(__file__)) -STATIC_ROOT = os.path.join(PROJECT_DIR, 'static') +STATIC_ROOT = os.path.join(BASE_DIR, 'static') + +STATICFILES_DIRS = [ + os.path.join(BASE_DIR, "frontend/dist/"), + ] + +MEDIA_URL = '/media/' +MEDIA_ROOT = os.path.join(BASE_DIR, 'media')