django.db.utils.OperationalError: database is locked solution

Sqlite only allows single-threaded connections, and it is necessary to ensure that other database connections are disconnected when performing operations

  • First close the connection to the database, if you are using the DB Navigator in pycharm, just select diconnect
    insert image description here
  • If not, check the operation permissions of the database table

Guess you like

Origin blog.csdn.net/weixin_42173136/article/details/125032657