Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
630 B
1
Indexable
Never
def edit(request):
    result=reg.objects.all()
    return render(request,"edit.html")
def edit(request):
    name = request.POST['name']
    email = request.POST['email']
    phone = request.POST['phone']
    gender = request.POST['gender']
    district = request.POST['district']
    password = request.POST['password']
    confirm_password = request.POST['confirm password']
    robj = registration()
    robj.name = name
    robj.email = email
    robj.phone = phone
    robj.gender = gender
    robj.district = district
    robj.password = password
    robj.save()
    return HttpResponse("successfull"),