<!--this is my base.html file -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Jumbotron Template for Bootstrap</title>
</head>
<body>
{% block content %} {% endblock %}
<p>© Company 2014</p>
</body>
</html>
<!-- this is my signup.html file-->
{% extends "base.html" %}
{% block title %}
<form method = 'POST' action = ''>{% csrf_token %}
<label for="your_name">Your name: </label>
{{form.as_p}}
<input type = 'submit'>
</form>
{ % endblock % }
I am just getting error
"Unclosed tag 'block'. Looking for one of: endblock"
Please help.
It is important not to add extra spaces and follow the syntax. Replace:
{ % endblock % }
with:
{% endblock %}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With