🍡 Django Tutorial - Static Files
Static Files
Updated at 2018-11-23 18:30
Create polls/static/polls/style.css:
li a {
color: green;
}
Edit polls/templates/polls/index.html:
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}" />
# ...
Now go to http://localhost:8000/polls/ and see that the list color is green.