# django admin page css issue in production

**URL:** <https://forum.djangoproject.com/t/django-admin-page-css-issue-in-production/37395>\
**Category:** Deployment\
**Created:** [December 21, 2024, 6:16pm UTC](https://forum.djangoproject.com/t/django-admin-page-css-issue-in-production/37395 "2024-12-21T18:16:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prathamesh-Shigwan](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/prathamesh-shigwan/32/25880_2.png) [@Prathamesh-Shigwan](https://forum.djangoproject.com/u/Prathamesh-Shigwan)\
**Post date:** [December 21, 2024, 6:16pm UTC](https://forum.djangoproject.com/t/django-admin-page-css-issue-in-production/37395/1 "2024-12-21T18:16:55Z")

</div>

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

```auto
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;
    }
}

```

---

<div class="post-metadata">

**Author:** ![anefta](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/anefta/32/10649_2.png) [@anefta](https://forum.djangoproject.com/u/anefta)\
**Post date:** [December 21, 2024, 6:35pm UTC](https://forum.djangoproject.com/t/django-admin-page-css-issue-in-production/37395/2 "2024-12-21T18:35:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [December 21, 2024, 8:05pm UTC](https://forum.djangoproject.com/t/django-admin-page-css-issue-in-production/37395/3 "2024-12-21T20:05:50Z")

</div>

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`
