2👍
✅
Django won’t process the css file. In a production server, it is likely to be just served by nginx or apache for example.
Use relative path instead.
If your css file is on the same dir as your background image, just put it like this:
.splash {
background-image: url("background.JPG");
}
Or you may use the full url:
.splash {
background-image: url("/static/background.JPG");
}
If you have a dir structure like this:
|static
|--css
|--img
You can specify it like this:
.splash {
background-image: url("../img/background.JPG");
}
Source:stackexchange.com