执行命令,迁移同步数据库和表结构
python manage.py makemigrations
python manage.py migrate
报错信息:
AttributeError: 'str' object has no attribute 'decode'
解决办法:
1、找到python安装目录下的django文件夹下的operations.py
2、搜索query
将decode修改成encode
执行命令,迁移同步数据库和表结构
python manage.py makemigrations
python manage.py migrate
报错信息:
AttributeError: 'str' object has no attribute 'decode'
解决办法:
1、找到python安装目录下的django文件夹下的operations.py
2、搜索query
将decode修改成encode