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
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
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
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
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
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'
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(
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'
>
//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
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
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
11 matches
Mail list logo