@login_required
def comment_delete(request):
pk = request.POST.get('pk')
comment = get_object_or_404(Comment, pk=pk)
if request.method == 'POST' and request.user == comment.author:
comment.delete()
message = '삭제완료'
status = 1
else:
message = '잘못된 접근입니다'
status = 0
return HttpResponse(json.dumps({'message': message, 'status': status, }), content_type="application/json")
여기서 질문드러요!!