视图处理完成后需要返回UUID,但是报错:UUID('') is not JSON serializable

其实只需要,将uuid转换为字符串类型

return HttpResponse(json.dumps({'status': '0000', 'msg': '保存成功', 'uuid': str(uuid), 'id': id}))

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2021-06-09
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
相关资源
相似解决方案