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.
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 :Register code :Login code :Best RegardPrateek sharma9620787162
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.
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.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BP3%3DEhaZ%3DxnBQDX82qiVNai3Nz3sAh1_t0dLpzi-JGj%3DFzo8w%40mail.gmail.com.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF2Ah_HdpoX7DysJyVvty0susfqA6%3DZPSHmxYW68ZW%2BBmyAotg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2B3Tvphjh%2BL-jDSmBZDktPoGt9oE3Xr45h8DASoiPACv0vEFOw%40mail.gmail.com.