django.db.utils.ProgrammingError: (1064, “You have an error in your SQL syntax;

报错:

django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

version for the right syntax to use near '; SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED' at line 1")

解决:

setting.py—>DATABASES 添加

'OPTIONS':{'isolation_level':None}

设置隔离级别

django.db.utils.ProgrammingError: (1064, “You have an error in your SQL syntax;_第1张图片

参考博客:django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual tha-CSDN博客

你可能感兴趣的:(sqlite,数据库)