15 lines
445 B
Python
15 lines
445 B
Python
from .settings import *
|
|
from pathlib import Path # مطمئن شوید Path ایمپورت شده است
|
|
|
|
DEBUG = True
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': Path('/app/sqlite/db.sqlite3'),
|
|
'OPTIONS': {
|
|
# ۱. افزایش زمان انتظار به ۳۰ ثانیه برای جلوگیری از خطای Database is locked
|
|
'timeout': 30,
|
|
},
|
|
}
|
|
} |