I have a parent template with this code
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %}</title>
{% load static %}
<link rel="stylesheet" href="{% static 'base.css' %}"/>
{% block additionalStyles %}{% endblock %}
</head>
and I have a child template with this code
{% extends 'base.html' %}
{% load static %}
{% block additionalStyles %}<link rel="sytlesheet" href="{% static 'rants.css' %}"/>{% endblock %}
this doesn't seem to work and I don't get an error either. The base.css loads fine and when I inspect element on the webpage I can see <link rel="sytlesheet" href="static/rants.css"/> in the HTML code but it doesn't have any affect on any of the elements that it should. Is there a better way of doing this? and why is it not working?
Edit: It magically started working?? idk why or how, here is the new code if anyone has the same problem, in child:
{% extends "base.html" %}
{% load static %}
{% block title %}Rants{% endblock %}
{% block additionalStyles %}
<link rel="stylesheet" href="{% static 'rants.css' %}"/>
{% endblock %}
in parent:
{% load static %}
<title>{% block title %}{% endblock %} </title>
<link rel="stylesheet" href="{% static 'base.css' %}"/>
{% block additionalStyles %} {% endblock %}