I am trying to send a POST request from javascript to views.py using AJAX. However, I am getting a 403 Error stating that csrf token is not present.
In order to resolve this issue I followed this link and included the function in my javascript. However, I am confused as to what the next step should be.
Any assistance will be appreciated. Thanks!