[Answered ]-Deployment of django using nginx

2👍

change your nginx.conf like below:

location /static/ {
    root /home/user/myproj/static;
}

NginX will route client’s request /static/ to static files serving where is same as STATIC_ROOT = os.path.join(BASE_DIR, 'static')

Note: url should be /yoururl/ and location should be absolute like /home/user/proj/static

👤Beomi

Leave a comment