in your code data is json.dumps(request.data), which is a string representation of the json dictionary
so data is a str and then you are trying to do item assignment to it
On Wed, May 13, 2020 at 8:05 AM ola neat <tosinayoola0@gmail.com> wrote:
--good day guys, please i need help with my signup api, when the user click signup i get this err msg "TypeError: 'str' object does not support item assignment", in my CLI, which as a result display err msg to the user, but eventually the user get created. i got the code and err msg attached belowthanks
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn72ZwUjSgHCDxLdu4C6wcg_zv8N%2Brx4EnmFySmcyLHPG7w%40mail.gmail.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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei2HL%3DHZU5P1J7gYZnAW6iDiTv4-kTX1%2BP-GNpGWXDv11g%40mail.gmail.com.
No comments:
Post a Comment