mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Prettify code, change ENV variable name
This commit is contained in:
parent
c196e2eb66
commit
a1cd05f9e2
2 changed files with 8 additions and 2 deletions
|
|
@ -95,7 +95,13 @@ WSGI_APPLICATION = 'paperless.wsgi.application'
|
|||
DATABASES = {
|
||||
"default": {
|
||||
"ENGINE": "django.db.backends.sqlite3",
|
||||
"NAME": os.path.join(os.getenv("PAPERLESS_DBLOCATION",os.path.join(BASE_DIR, "..", "data")), "db.sqlite3")
|
||||
"NAME": os.path.join(
|
||||
os.getenv(
|
||||
"PAPERLESS_DBDIR",
|
||||
os.path.join(BASE_DIR, "..", "data")
|
||||
),
|
||||
"db.sqlite3"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue