import os STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') python manage.py collectstatic sudo chown -R www-data:www-data /home/econexp/staticfiles/ sudo chmod -R 755 /home/econexp/staticfiles/ sudo nano /etc/nginx/sites-available/yourdomain.com server { listen 80; server_name fadvintage.online www.fadvintage.online; location /static/ { alias /home/econexp/staticfiles/; } location / { include proxy_params; proxy_pass http://unix:/home/econexp/econexp.sock; } } sudo nginx -t sudo systemctl restart nginx sudo systemctl restart gunicorn