First, make sure that you send the request to http://127.0.0.1/add/ not http://127.0.0.1/add.
Secondly, you may also want to exempt the view from csrf processing by adding the @csrf_exempt decorator – since you aren’t sending the appropriate token from cURL.