help with my signup api

14 views
Skip to first unread message

ola neat

unread,
May 13, 2020, 8:05:44 AM5/13/20
to django...@googlegroups.com
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
Screenshot from 2020-05-13 13-00-48.png
Screenshot from 2020-05-13 13-00-32.png

Vijay Khemlani

unread,
May 13, 2020, 10:38:22 AM5/13/20
to django...@googlegroups.com
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 <tosina...@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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHLKn72ZwUjSgHCDxLdu4C6wcg_zv8N%2Brx4EnmFySmcyLHPG7w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages