'csrf_tokan', expected 'endblock'. Did you forget to register or load this tag?

Viewed 404
{%extends 'base.html'%}

{% block content%}

<h1>hellow {{name}}</h1>

<form action="add" method='post'>

    {% csrf_tokan %}



    Enter 1st number : <input type="text" name="num1"><br>
    Enter 2nd number : <input type="text" name="num2"><br>
    <input type="submit">

</form>
{% endblock%}
1 Answers

It is csrf_token not csrf_tokan. So replace {% csrf_tokan %} with {% csrf_token %}

Related