mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Safer place for the database
This commit is contained in:
parent
fe47f9f07e
commit
f620762456
0
data/.keep
Normal file
0
data/.keep
Normal file
@ -79,9 +79,9 @@ WSGI_APPLICATION = 'paperless.wsgi.application'
|
|||||||
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
"default": {
|
||||||
'ENGINE': 'django.db.backends.sqlite3',
|
"ENGINE": "django.db.backends.sqlite3",
|
||||||
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
"NAME": os.path.join(BASE_DIR, "..", "data", "db.sqlite3"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if os.environ.get("PAPERLESS_DBUSER") and os.environ.get("PAPERLESS_DBPASS"):
|
if os.environ.get("PAPERLESS_DBUSER") and os.environ.get("PAPERLESS_DBPASS"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user