如何解决启动 cmdb 的问题
how to resolve the problem with starting cmdb
我的软件版本:
姜戈 (1.11.13)
python3.4.3
玛丽亚数据库 10.5
当我使用 python3 manage.py makemigrations
时出现
错误
File "/home/python34/lib/python3.4/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/python34/lib/python3.4/site-packages/MySQLdb/cursors.py", line 203, in execute
raise ProgrammingError(str(m))
django.db.utils.ProgrammingError: unsupported operand type(s) for %: 'bytes' and 'tuple'
我该如何解决这个问题?
尝试将您的 python 版本从 python 3.4 更新到 python 3.5
我的软件版本:
姜戈 (1.11.13)
python3.4.3
玛丽亚数据库 10.5
当我使用 python3 manage.py makemigrations
时出现
File "/home/python34/lib/python3.4/site-packages/django/db/backends/mysql/base.py", line 101, in execute
return self.cursor.execute(query, args)
File "/home/python34/lib/python3.4/site-packages/MySQLdb/cursors.py", line 203, in execute
raise ProgrammingError(str(m))
django.db.utils.ProgrammingError: unsupported operand type(s) for %: 'bytes' and 'tuple'
我该如何解决这个问题?
尝试将您的 python 版本从 python 3.4 更新到 python 3.5