Separate default DB
This commit is contained in:
parent
779ee06149
commit
b4b9ee3f2b
1 changed files with 4 additions and 2 deletions
|
@ -68,14 +68,16 @@ WSGI_APPLICATION = 'yamdl_playground.wsgi.application'
|
|||
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': 'file:default-db?mode=memory&cache=shared',
|
||||
},
|
||||
'yamdl': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': 'file:yamdl-db?mode=memory&cache=shared',
|
||||
}
|
||||
}
|
||||
|
||||
DATABASES["default"] = DATABASES["yamdl"]
|
||||
|
||||
YAMDL_DIRECTORIES = [
|
||||
BASE_DIR / "content",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue