1👍
✅
When return you can include the data you want to send by ex:
from django.http import JsonResponse
data = {'message':'your message'}
return JsonResponse(data)
and in the javascript ..
success: function(response) {
console.log(response.message);
Source:stackexchange.com