Skip to content

Commit

Permalink
[fix] seperate react, django static files
Browse files Browse the repository at this point in the history
  • Loading branch information
ljy2855 committed Feb 2, 2024
1 parent c4e3189 commit 06ad21c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/cspc_web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down
2 changes: 1 addition & 1 deletion nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ server {
proxy_redirect off;
}

location /static/ {
location /djang_static/ {
# static file servce
alias /home/app/web/static/;
}
Expand Down

0 comments on commit 06ad21c

Please sign in to comment.