问题:
File “D:\Python36\lib\site-packages\django\db\models\query.py”, line 122, in iter
for row in compiler.results_iter():
File “D:\Python36\lib\site-packages\django\db\models\sql\compiler.py”, line 828, in results_iter
results = self.execute_sql(MULTI)
File “D:\Python36\lib\site-packages\django\db\models\sql\compiler.py”, line 876, in execute_sql
cursor.execute(sql, params)
File “D:\Python36\lib\site-packages\django\db\backends\utils.py”, line 91, in execute
extra={‘duration’: duration, ‘sql’: sql, ‘params’: params}
Message: ‘(%.3f) %s; args=%s’
Arguments: (0.002991914749145508, 'SELECT django_migrations
.app
, django_migrations
.name
FROM django_migrations
', ())
PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。: ‘E:\project\logs\project\wb_mysql.log’ -> ‘E:\project\logs\project\wb_mysql.log.1’
解决办法:
找到E:\project\logs\project\wb_mysql.log’ 并删除