Prettify code, change ENV variable name

This commit is contained in:
Jeff Bogatay authored and Daniel Quinn committed 2016-09-06 17:53:26 +01:00
1 parent 74c5537979
commit 69466e712b
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -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"
)
}
}