From 06ad21c9229f95de2fba05f6af5238f89b006205 Mon Sep 17 00:00:00 2001 From: ljy2855 Date: Fri, 2 Feb 2024 21:45:51 +0900 Subject: [PATCH] [fix] seperate react, django static files --- app/cspc_web/settings.py | 2 +- nginx/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cspc_web/settings.py b/app/cspc_web/settings.py index 9e941cc..278643e 100644 --- a/app/cspc_web/settings.py +++ b/app/cspc_web/settings.py @@ -158,7 +158,7 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.1/howto/static-files/ -STATIC_URL = "/static/" +STATIC_URL = "/djang_static/" STATIC_ROOT = os.path.join(BASE_DIR, "static") diff --git a/nginx/nginx.conf b/nginx/nginx.conf index ccb5f3f..9b97259 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -66,7 +66,7 @@ server { proxy_redirect off; } - location /static/ { + location /djang_static/ { # static file servce alias /home/app/web/static/; }