In my folder, I have two Django templates. One template is for the URL localhost:8000/people
and it correctly fetches CSS from /m/css/style.css
.
The problem arises with the second template meant for the URL localhost:8000/people/some-name
. This template fails to retrieve the CSS from people/m/css/style.css
.
What could be causing this second template to not load the CSS like the first template?
The code for my erroneous second template looks like this:
{% extends "base.html" %}
{% block page_title %}{{ entry.name }} | {{ block.super }}{% endblock %}
{% block main %}
<h1>{{ entry.name }}</h1>
{{ entry.body|linebreaks }}
{% endblock main %}
Upon reviewing the template code, there doesn't appear to be anything that would cause this issue.