from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse

@csrf_exempt
def edit_favorites(request):
    if request.is_ajax():
        message = 'Yes, AJAX!'
How do I POST with jQuery/Ajax in Django?