This is the ajax req
$.ajax({
type: "POST",
url: window.portal_url + '/ajax_call',
contentType: "application/json",
data: JSON.stringify(ajaxData),
success: function(response) {
console.log("Server response:", response);
alert(response);
},
error: function(xhr, status, error) {
console.error("Error:", error);
alert(response);
}
});
How the Python script looks for gettting the datas? "request.get"