def delete(request): no = request.POST['no'] password = request.POST['password'] guestbookmodels.delete(no, password) return HttpResponseRedirect('/guestbook')
def delete(request): no = request.POST['no'] password = request.POST['password'] data = {'no': no, 'password': password} models.delete(data) return HttpResponseRedirect("/guestbook/")
def delete(request): no = request.POST['no'] password = request.POST['password'] # print(no) # print(password) // 잘 전달되는 지 확인 guestbookmodel.delete(no, password) return HttpResponseRedirect('/guestbook')
def delete(request): no = request.POST['no'] password = request.POST['password'] data = {"no":no, "password":password} models.delete((no, password)) return HttpResponseRedirect("/guestbook", data)
def delete(request): no = request.POST['no'] password = request.POST['password'] result = guestbookmodel.delete(no, password) if result == 1: return HttpResponseRedirect('/guestbook') else: return HttpResponseRedirect('/guestbook/deleteform?message="sthwrong"')
def delete(request): no = request.POST['no'] password = request.POST['password'] result = guestbookModel.delete(no, password) print(result) if result == 0: return HttpResponseRedirect('/guestbook') elif result == -1: return HttpResponse('비밀번호가 틀렸습니다. \n다시 시도해주시기 바랍니다.', content_type='text; charset=Euc-kr')
def test_guestbookmodel_delete(): guestbookmodel.delete(11, '1234')
def test(): mysitemodel.delete(2, '1234')