Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 317 Bytes

File metadata and controls

21 lines (17 loc) · 317 Bytes

django-db-locks

SQL database locking backend for processes

to install:

pip install django-db-locks

A db can be specified by adding the router to your DATABASE_ROUTERS and creating the locks setting dict:

DATABASE_ROUTERS = [
    ...,
    locks.router.Router
]

LOCKS ={
    'db': 'mydb'
}