switch sqlite to use WAL mode by default to prevent database locked errors

This commit is contained in:
Nick Sweeting 2021-02-15 13:39:03 -05:00
parent 188670eb8b
commit 611216765d
2 changed files with 5 additions and 0 deletions

View file

@ -107,6 +107,9 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': DATABASE_NAME,
'OPTIONS': {
'init_command': 'PRAGMA journal_mode=wal;',
}
}
}