django admin page css issue in production

ubuntu@ip-172-31-40-57:~$ sudo tail -f /var/log/nginx/error.log
2024/12/21 16:27:04 [error] 19476#19476: *28 open() “/home/ubuntu/stellarsgroup/static/static/admin/css/base.css” failed (2: No such file or directory), client: 103.178.143.42, server: _, request: “GET /static/admin/css/base.css HTTP/1.1”, host: “16.171.5.31”
2024/12/21 16:27:04 [error] 19476#19476: *28 open() “/home/ubuntu/stellarsgroup/static/static/admin/css/base.css” failed (2: No such file or directory), client: 103.178.143.42, server: _, request: “GET /static/admin/css/base.css HTTP/1.1”, host: “16.171.5.31”

this is my /etc/nginx/sites-available/stellarsgroup file

server {
    listen 80;
    server_name _;


    location / {
        proxy_pass http://unix:/run/gunicorn.sock;

        include proxy_params;
    }

    location /static/ {
    alias /home/ubuntu/stellarsgroup;
    }


    location /media/ {
        root /home/ubuntu/stellarsgroup;
    }
}


Please format your code and post the error you get as text

Welcome @Prathamesh-Shigwan !

Please post your STATIC_ROOT and STATIC_URL settings. Also please confirm that you are running collectstatic and identify the actual directory where the file base.css resides relative to your STATIC_ROOT.

Also, I’ll point out that as a general rule, it’s not a great idea to have STATIC_ROOT referring to a location within your project. It should be referencing a more nginx-friendly location such as /var/www/html