1
Fork 0

Separate default DB

This commit is contained in:
Jake Howard 2024-01-10 22:01:01 +00:00
parent 779ee06149
commit b4b9ee3f2b
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -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",
]