Re: dlango MultiValueDictKeyError

2022-08-10 Thread Lakshyaraj Dash
You may have missed the name attribute in your form input On Wed, Aug 10, 2022, 19:18 Benji Zachariah wrote: > I am getting an below error in module GET and POST > > MultiValueDictKeyError at /user-details > > 'Name' > > Request Method:GET > Request URL:http://127.0.0.1:8000/user-details

Re: dlango MultiValueDictKeyError

2022-08-10 Thread Abdul Qoyyuum
What have you tried to do? Is there a particular key that causes this? Can you share the full stack traceback please? On Wed, Aug 10, 2022 at 9:49 PM Benji Zachariah wrote: > I am getting an below error in module GET and POST > > MultiValueDictKeyError at /user-details > > 'Name' > > Request Met

dlango MultiValueDictKeyError

2022-08-10 Thread Benji Zachariah
I am getting an below error in module GET and POST MultiValueDictKeyError at /user-details 'Name' Request Method:GET Request URL:http://127.0.0.1:8000/user-details Django Version:4.0.6 Exception Type:MultiValueDictKeyError Exception Value: 'Name' Exception Location: C:\U

Re: dlango MultiValueDictKeyError

2019-08-06 Thread Ajeet Kumar Gupt
Hi, Problem was in my code I was using the request.POST['username'] instead of request.POST.get('username') You have given the solutions and the same I have implemented. Once again thanks to you if any issues let you know. *Actually, I am very new in Django hardly 1 week back started. This is m

Re: dlango MultiValueDictKeyError

2019-08-06 Thread DPM
Hey Ajit, Its Great. Can you please tell us what was the problem? On Tue, 6 Aug, 2019, 1:07 PM Ajeet Kumar Gupt, wrote: > Hi, > > Thank you very much now issues have been resolved. > > > > On Mon, Aug 5, 2019 at 6:14 PM Sipum Mishra wrote: > >> Hey Ajit, >> >> This error comes when You are tryi

Re: dlango MultiValueDictKeyError

2019-08-06 Thread Ajeet Kumar Gupt
Hi, Thank you very much now issues have been resolved. On Mon, Aug 5, 2019 at 6:14 PM Sipum Mishra wrote: > Hey Ajit, > > This error comes when You are trying to get username, passwords from the > form. > It is due to the below reason - > > In Login, > You are using -> request.POST['username'

Re: dlango MultiValueDictKeyError

2019-08-05 Thread DPM
Hey Vishal, I don't think this error comes for what you told. The error raises for which I v mentioned above. And I agree with u as that is also have to do. As he did import auth so need to write auto.authentication. On Mon, 5 Aug, 2019, 8:54 PM vishal singh, wrote: > //users = authenticate(

Re: dlango MultiValueDictKeyError

2019-08-05 Thread Grace Nyokabi
what error did you get? On Mon, 5 Aug 2019 at 13:16, Ajeet Kumar Gupt wrote: > Dear Team, > > I am developing custom registration and login page for end-user but > getting the below error. Please find the views.py code also in the trail. > > > *MultiValueDictKeyError at /login/* > > 'username' >

Re: dlango MultiValueDictKeyError

2019-08-05 Thread vishal singh
//users = authenticate(request, username=username, password=password) you have to use Auth keyword to remove this exception as right now it is treated as a dict. users = Auth.authenticate(request, username=username, password=password) On Mon, 5 Aug 2019 at 15:46, Ajeet Kumar Gupt wrote: > De

Re: dlango MultiValueDictKeyError

2019-08-05 Thread Sipum Mishra
Hey Ajit, This error comes when You are trying to get username, passwords from the form. It is due to the below reason - In Login, You are using -> request.POST['username'] which will raise a KeyError exception if 'username' is not in request.POST. Instead use -> request.POST.get('username') whi

dlango MultiValueDictKeyError

2019-08-05 Thread Ajeet Kumar Gupt
Dear Team, I am developing custom registration and login page for end-user but getting the below error. Please find the views.py code also in the trail. *MultiValueDictKeyError at /login/* 'username' Request Method: GET Request URL: http://127.0.0.1:8000/login/ Django Version: 2.2.3 Exception