5
I’m starting in Django and making some changes in code already written by someone. I realized that in form instead of the usual "/action page"
to which the data will be submitted, such as in this example of W3schools:
<form action="/action_page.php" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
the attribute action
has a point, why?
<form action="." method="post">