I have a simple html page that works and renders properly on my local browser, but when I reference the static css file the page loads without the styling and I get a 200 Success for the url but 404 for the style.css file
I used
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
inside of the HTML file. I have the static folder in the correct spot at the project level and then a css file inside that followed by the style.css file.
The Html page:
{% load static %}
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}">
</head>
<body>
<h1>Home</h1>
<header>
<nav>
<ul>
<li><a href="{% url 'home' %}">Home</a></li>
<li><a href="{% url 'about' %}">About</a></li>
<li><a href="{% url 'info' %}">Info</a></li>
</ul>
</nav>
</header>
</body>
</html>
The CSS page:
h1 {
background-color: orange;
}
From the research I've done this should get the backgrounds of all the h1 tags orange but it is not working. Any Advice?
handle Static Files In dajngo
Steps: