📌  相关文章
📜  django.db.utils.operationalerror:数据库被锁定 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:25.584000             🧑  作者: Mango

代码示例1
Solutions:
. Switching to another database backend. At a certain point SQLite becomes 
    too "lite" for real-world applications, and these sorts of concurrency 
    errors indicate you've reached that point.
. Rewriting your code to reduce concurrency and ensure that database 
    transactions are short-lived.
. Increase the default timeout value by setting the timeout database option