Unable to load static files for my site

I am hoping one of you can solve my problem. I am using python django for my app. It works fine on the local machine and am trying to get the code deployed to the server. I deployed without any docker, and functionality all works fine but the static files dont. I checked what the issue could be and from what I could find, it was due to not using a web server. I added a nginx server and the instruction to route to the static files:

server {
listen 443 ssl;
server_name localhost;

location /static/ {
    alias ./staticfiles/
}

location / {
    proxy_pass http://0.0.0.0:8000
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
}

}
I have tried variety of different settings on this file and it hasnt worked. I opened a ticket on Saturday, I got a request for more info and i dont have a resolution yet. Any ideas will be greatly appreciated

Hi Prasad,

I see my colleague has responded to the support ticket you opened on this same subject. I’ll close this one out to avoid duplicating efforts and confusing threads.

Regards,

Matt