Example #1
0
def delete(request):
    no = request.POST['no']
    password = request.POST['password']

    guestbookmodel.deleteby_no_and_password(no, password)

    return HttpResponseRedirect('/guestbook01')
Example #2
0
def guestDelete(request):
    print("======guestDelete======guestDelete======guestDelete======guestDelete")
    no=request.POST["no"]
    print("no="+no)
    password=request.POST["password"]
    models.deleteby_no_and_password(no,password)
    return HttpResponseRedirect("/guestbook01")
Example #3
0
def delete(request):

    no = request.POST["no"]
    password = request.POST["password"]

    models.deleteby_no_and_password(no, password)

    return HttpResponseRedirect("/guestbook01")
Example #4
0
def test_deleteby_no_and_password():
    no = 3
    password = '******'

    result = deleteby_no_and_password(no, password)
    print(f'delete result: {result}')