{%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%}
是csrf_token
而不是csrf_tokan
。所以用{% csrf_token %}
代替{% csrf_tokan %}