Beispiel #1
0
def dform(request):
    if request.method == "POST":
        e = UsregForm(request.POST)
        if e.is_valid():
            e.save()
            return HttpResponse("user create successfully ")
    e = UsregForm()
    return render(request, 'html/dyform.html', {'pt': e})
Beispiel #2
0
def dform(req):
    if req.method == "POST":
        e = UsregForm(req.POST)
        if e.is_valid():
            e.save()
            return HttpResponse("User Created Succesfully")
    e = UsregForm()
    return render(req, 'html/dform.html', {'tu': e})
Beispiel #3
0
def dform(request):
	if request.method == "POST":
		e = UsregForm(request.POST)
		if e.is_valid():
			e.save()
			return redirect("/showdata")
	e = UsregForm()
	return render(request,'html/dyform.html',{'tu':e})
Beispiel #4
0
def dform(request):
    if request.method == "POST":
        e = UsregForm(request.POST)
        if e.is_valid():
            q = e.save()
            y = NewData.objects.create(pid_id=q.id)
            return HttpResponse("user create successfully ")
    e = UsregForm()
    return render(request, 'html/dyform.html', {'pt': e})
def dform(request):
	if request.method == "POST":
		e = UsregForm(request.POST)
		if e.is_valid():
			q = e.save()
			y = NewData.objects.create(pid_id=q.id)
			return redirect("/showdata")
	e = UsregForm()
	return render(request,'html/dyform.html',{'tu':e})
Beispiel #6
0
def dform(request):
	if request.method=="POST":
		e=UsregForm(request.POST)
		if e.is_valid():
			e.save()
			data2=UsrRg.objects.all()
			return render(request,'html/user.html',{'info':data2})
	e = UsregForm()
	return render(request,'html/dyform.html',{'tu':e}) 
def dform(request):
	if request.method=="POST":
		e=UsregForm(request.POST)
		if e.is_valid():
			e.save()
			#return HttpResponse("User Created Successfully")
			return redirect('show')
	e=UsregForm()
	return render(request,'html/dyform.html',{'tu':e})
def dform(request):
	if request.method=="POST":
		e=UsregForm(request.POST)
		if e.is_valid():
			q=e.save()
			y=NewData.objects.create(pid_id=q.id)
			#return HttpResponse("User Created Successfully")
			return redirect('/show')
	e=UsregForm()
	return render(request,'html/dyform.html',{'tu':e})
Beispiel #9
0
def dform(request):
    if request.method == "POST":
        e = UsregForm(request.POST)
        if e.is_valid():
            e.save()
            data2 = UsrRg.objects.all()
            return render(request, 'html/dyform1.html', {'info': data2})

            #return HttpResponse('user created suc')
    e = UsregForm()
    return render(request, 'html/dyform.html', {'tu': e})
Beispiel #10
0
def dform(request):
	if request.method=="POST":
		e=UsregForm(request.POST)
		if e.is_valid():
			q=e.save()
			y=NewData.objects.create(pid_id=q.id)
			data = UserRg.objects.all()
			return redirect('/sd')
			return render(request,'html/data.html',{'info':data})

	e=UsregForm()
	return render(request,'html/dyform.html',{'tu':e})