var xhr = new XMLHttpRequest();
xhr.open("POST", '/some-url', true)
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.send("param_name=param_val");
def simple_ajax(request):
if request.method == 'POST':
print(request.POST.get('param_name'))