I want to use a background image in one of my web pages served up by Django. Ideally, I use a css file and use css background-image property, but when I put it in my css file, it will not render, but it renders if I put the code in the HTML document (internal style sheet). So, to sum it up. the same exact code, here:
<style>
body {
background-image: url("{% static 'Kitchen.jpg' %}");
background-repeat: no-repeat; background-attachment: fixed;
}
</style>
The above code works in the html doc but not in the css (minus the html "style" tags). Furthermore, other code in the same css file works just fine. For some reason, the background-image property will not execute in the css file.
Unless someone has another idea, seems like this is a Django software bug.