解决方法

vi /home/zhangtq/.local/lib/python3.6/site-packages/django/db/backends/mysql/operations.py

将decode改为encode 

或直接注释掉如下图

django报错query = query.decode(errors='replace') AttributeError: 'str' object has no attribute 'decode'

 

相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
相关资源
相似解决方案