index.html
{% load staticfiles %}
<!doctype html>
<html>
<head>
<title>My Hello Web App</title>
<link rel='stylesheet' href="{% static '../static/css/style.css' %}" />
</head>
<body>
<h1>Hello World!</h1>
<p>I am a basic website.</p>
</body>
</html>
style.css
body
{
background-color: cornflowerblue;
}
In my index.html file I’ve tried the href relative path both with and without ../static/
. Any ideas? I know the focus here is on python and django but I can’t move forward as long as this simple problem stays in my way.