I am learning Django and building out the first test poll app but am running into issues with the background images. The green text works, but adding the background image does not do anything (background is just white). Any idea why this is not functioning properly?
Background Image C:\Users\xxx\Python\Django\mysite\polls\static\polls\images\sample123.jpg
Style CSS: C:\Users\xxx\Python\Django\mysite\polls\static\polls\style.css
li a {
color: blue;
}
body {
background: url('C:\Users\xxx\Python\Django\mysite\polls\static\polls\images\sample123.jpg');
background-repeat: no-repeat;
}
Index HTML: C:\Users\xxxx\Python\Django\mysite\polls\templates\polls
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
{% if latest_question_list %}
<ul>
{% for question in latest_question_list %}
<li><a href="{% url 'polls:detail' question.id %}">{{ question.question_text }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}