In my Django app I have a listing of items with a 'delete' option available next to each one. I want the user to be able to click the 'delete' button, have it send a $.post to the Django view, where it will delete that instance. Upon successfully deleting this instance, i'll trigger another Ajax request in javascript to redraw the listing without the deleted instance.
My question: if I'm not actually returning a value to the $.post, then should I be using ajax to do this operation? Is Ajax specifically for retrieving information? And is a Django view required to return an HttpResponse even if I'm not actually returning anything?
What is the proper way to handle something like a 'delete' request and view?
Thanks.