Re: How to create a login form with two more forms in it

2019-05-23 Thread laurine ogutu
Thank you all On Wed, May 15, 2019, 2:55 PM arun ashok > https://www.codementor.io/lakshminp/handling-multiple-forms-on-the-same-page-in-django-fv89t2s3j > this > will get you some idea about loading multiple forms in a temlate.If you > want to hide the forms related to button click,add the fo

Re: How to create a login form with two more forms in it

2019-05-15 Thread arun ashok
https://www.codementor.io/lakshminp/handling-multiple-forms-on-the-same-page-in-django-fv89t2s3j this will get you some idea about loading multiple forms in a temlate.If you want to hide the forms related to button click,add the forms in different div's,use java script to hide or display the

Re: How to create a login form with two more forms in it

2019-05-13 Thread Najmath Ummer
Hello, You can use django-allauth for authentication and authorization (Login, Logout, Signup, Email verification etc) django-allauth tutorial then in settings.py add LOGIN_REDIRECT_URL = 'yourapp:nameofurl' then in the corresponding view you can wr

Re: How to create a login form with two more forms in it

2019-05-13 Thread salimon jamiu olashile
Hey, I think you can do this by adding conditionals to your template to handle the data sent from the view. Regards On Mon, 13 May 2019 at 3:29 PM, MUHAMMAD AFZAL wrote: > You could solve this problem in templates itself by placing form in > different positions or using advanced frameworks like

Re: How to create a login form with two more forms in it

2019-05-13 Thread MUHAMMAD AFZAL
You could solve this problem in templates itself by placing form in different positions or using advanced frameworks like bootstrap of react. And in views code, write it separately and Connect it through urls. On May 13, 2019 5:03 PM, "laurine ogutu" wrote: Hi i have tried to create a login for

How to create a login form with two more forms in it

2019-05-13 Thread laurine ogutu
Hi i have tried to create a login form where a teacher and student can login. Once the teacher clicks the teachers button, they can give their details. Once a student clicks the student button, they can give their details different from the teachers. I have a problem getting it done. Kindly help -