Question

Images from css file are not loading when host my static files on digitalocean spaces.

Posted June 27, 2021 99 views
NginxPythonDjangoDigitalOcean SpacesUbuntu 20.04

I have some images in my static file img folder but images that I am using in my scss as background images background: url('/static/img/hero.jpg') are not loading when I host my static file on digitalocean space. but it works if i not host my static files to digitalocean spaces and also works on my development server. I don’t know what is the problem. can someone help me out it’s a bit urgent?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer
Show answer This answer has been marked as resolved by saastechfashion12.