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 <tosinayoo...@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 below
> thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHLKn72ZwUjSgHCDxLdu4C6wcg_zv8N%2Brx4EnmFySmcyLHPG7w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHLKn72ZwUjSgHCDxLdu4C6wcg_zv8N%2Brx4EnmFySmcyLHPG7w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@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.

Reply via email to