As mentioned above, “background.png” image is not shown in the poll app I am creating following the “Writing your first Django app” tutorial.
This is the code in polls/templates/polls/index.html
{% load static %}
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>My test page</title>
<link rel="stylesheet" href="{% static "polls/style.css" %}">
</head>
<body>
{% 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 %}
</body>
</html>
This is the code in polls/static/polls/style.css
body {
background: white url("images/background.png") no-repeat;
}
li a {
color: green;
}