I have a template base.html
of which the rest of my templates expand it by means of the label extends
, an example of the code of the file base.html
is the following:
{% load static %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}{% endblock %}</title>
<body class="hold-transition skin-blue sidebar-mini">
{% block content %}
{% endblock %}
</body>
</html>
As I am using bootstrap
I must define certain classes to some html tag. My problem is the following I would like that in a only template, for example, login.html
can overwrite the class of the body to be affected only in that template, the code of the file login.html
is:
{% extends 'base.html' %}
{% load static %}
{% block title %} Título {% endblock %}
{% block content %}
....
{% endblock %}