https://cloud.tencent.com/developer/article/1594506
https://blog.csdn.net/qq_36274515/article/details/89043481

\__init__.py
import pymysql
pymysql.install_as_MySQLdb()

venv\lib\site-packages\django\db\backends\mysql\operations.py", line 146, in last_executed_query
    query = query.decode(errors='replace')
AttributeError: 'str' object has no attribute 'decode'
posted on 2022-06-13 13:44  heidsoft  阅读(15)  评论(0编辑  收藏  举报