I have a few pages. For every page I need load unique css. For all static files I use this. In the head of index.html I have:
{% block css %}
{% endblock %}
But, for example, in contact.html I use:
{% extends "index.html" %}
{% block css %}
<link rel="stylesheet" href="{% static "css/contact.css" %}" type="text/css" />
{% endblock %}
And its print error: Invalid block tag: 'static', expected 'endblock'. How to fix it?
You need to use
{% load static %}
first.Your code needs to be refined.
You are using double quotes, where you need to use an apostrophe.
Use
Instead of
it is