Error : MultiValueDictKeyError

59 views
Skip to first unread message

PRATEEK SHARMA

unread,
Nov 1, 2018, 11:51:05 PM11/1/18
to django...@googlegroups.com, prateek sharma
Hi Django user,

I have creted register and login page. When i am registering new user it is getting successfull but when i am trying to login with same user Credentials it is throwing Error MultiValueDictKeyError. 

Friends could you please guid me how to fix it.

Below is the Error screenshot : 
image.png

Register code : 
image.png

Login code : 
image.png

Best Regard 
Prateek sharma 
9620787162

Sudipto Ghosh

unread,
Nov 2, 2018, 12:06:06 AM11/2/18
to django...@googlegroups.com

Hi , Prateek, I have gone through your code and have the same error before, I can help you out with the problem you are facing.
Use request.POST.get in your registered code .

For more information visit the website -

https://stackoverflow.com/questions/5895588/django-multivaluedictkeyerror-error-how-do-i-deal-with-it.
Regards
Sudipto

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B3TvpgwG_yQrG-jbTXC%2BYDH-maemQcOLXyyKt1wpsB6LLy22Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

amit pant

unread,
Nov 2, 2018, 12:17:57 AM11/2/18
to django...@googlegroups.com
hey, just use 
request.POST.get('')

On Fri 2 Nov, 2018, 9:35 AM Sudipto Ghosh, <sudiptog...@gmail.com> wrote:

Hi , Prateek, I have gone through your code and have the same error before, I can help you out with the problem you are facing.
Use request.POST.get in your registered code .

For more information visit the website -

https://stackoverflow.com/questions/5895588/django-multivaluedictkeyerror-error-how-do-i-deal-with-it.
Regards
Sudipto

On 02-Nov-2018 9:20 am, "PRATEEK SHARMA" <pratee...@gmail.com> wrote:
Hi Django user,

I have creted register and login page. When i am registering new user it is getting successfull but when i am trying to login with same user Credentials it is throwing Error MultiValueDictKeyError. 

Friends could you please guid me how to fix it.

Below is the Error screenshot : 
image.png

Register code : 
image.png

Login code : 
image.png

Best Regard 
Prateek sharma 
9620787162

--
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...@googlegroups.com.

--
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...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

Vivek Jha

unread,
Nov 2, 2018, 12:18:07 AM11/2/18
to Django users
We can create whatsapp group.Sharing of information will be more convenient....

amit pant

unread,
Nov 2, 2018, 12:32:09 AM11/2/18
to django...@googlegroups.com
hey,
you can use request.POST.get('username')

PRATEEK SHARMA

unread,
Nov 2, 2018, 2:07:29 AM11/2/18
to django...@googlegroups.com
Thanks a lot for your help, it works now

On Fri, Nov 2, 2018, 10:01 AM amit pant <amitp...@gmail.com wrote:
hey,
you can use request.POST.get('username')

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

amit pant

unread,
Nov 2, 2018, 2:14:16 AM11/2/18
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages