Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4

后端 未结 14 1081
梦如初夏
梦如初夏 2020-11-29 21:43

I have an error message on django 1.4:

dictionary update sequence element #0 has length 1; 2 is required

[EDIT]

It happe

14条回答
  •  独厮守ぢ
    2020-11-29 22:23

    I hit this error calling:

    dict(my_data)
    

    I fixed this with:

    import json
    
    json.loads(my_data)
    

提交回复
热议问题