[Answered ]-My code keeps showing me this error 404: the current path,get, didn't match any of these

1πŸ‘

βœ…

In your <form> you are confusing the method="…" with the action="…" attribute. The method="…" specifies the HTTP request type, whereas the action="…" specifies to what endpoint the request will be submitted.

You thus should work with:

<form method="get" action="{% url 'add' %}">
    <input type="text" name="num1" placeholder="Enter first number"><be>
    <input type="text" name="num2" placeholder="enter second number"><be>
    <input type="submit">
</form>

The method="get" is not necessary, since by default a form will be submitted through a GET request.

Leave a comment