Friday, March 5, 2021

Re: login and signup form in one view

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=='POST':
        if request.POST.get('submit') == 'checkform1':
            user_form = SignupForm(data = request.POST) # i want this to connect with html input tags using the name attribute but they are overlapping each other

            return render(request,'first_app/Login.html')
On Friday, 5 March 2021 at 21:34:02 UTC+5:30 Kasper Laudrup wrote:
On 05/03/2021 16.39, Eugene TUYIZERE wrote:
> Then, what is the problem
>

I have no idea. Doesn't seem like there is any.

I guess Uma just wanted to share what he's currently working with for
some reason. Would be nice if he shared it if he's come up with some
clever solution though.

Kind regards,

Kasper Laudrup

--
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 to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6d27cf6e-9e8a-4ada-83b4-42738943a40cn%40googlegroups.com.

No comments:

Post a Comment