Tutorial 6 done / Static file serving

This commit is contained in:
Lukas 2021-09-19 14:21:39 +02:00
parent 6723624810
commit 33ea2242b2
3 changed files with 11 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

View File

@ -0,0 +1,7 @@
li a {
color: red;
}
body {
background: white url("images/bg.jpg") no-repeat;
}

View File

@ -1,3 +1,7 @@
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
{% if latest_question_list %}
<ul>
{% for question in latest_question_list %}