login and signup form in one view

2021-03-05 Thread uma shankar
i have two forms in one html file and i want to write both of them in single view with and without submit buttons -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email t

Re: login and signup form in one view

2021-03-05 Thread uma shankar
I want to connect my Html input tags with fields created in models .py using the name attribute of each input tag def user_login(request): if request.method=='POST': if request.POST.get('submit') == 'checkform1': user_form = SignupForm(data = request.POST) # i want this

Re: login and signup form in one view

2021-03-05 Thread uma shankar
please tell me how to do that On Friday, 5 March 2021 at 22:21:54 UTC+5:30 uma shankar wrote: > I want to connect my Html input tags with fields created in models .py > using the name attribute of each input tag > > def user_login(request): > if request.method=='