A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Prettify code, change ENV variable name
Jeff Bogataya1cd05f9e2ff
diff --git a/paperless.conf.example b/paperless.conf.exampleindex 3ba8c6693..6b2a102ab 100644--- a/paperless.conf.example+++ b/paperless.conf.example@@ -83,5 +83,5 @@ PAPERLESS_SHARED_SECRET=""# You can specify where you want the SQLite database to be stored instead of# the default location-#PAPERLESS_DBLOCATION=/path/to/database/file+#PAPERLESS_DBDIR=/path/to/database/filediff --git a/src/paperless/settings.py b/src/paperless/settings.pyindex dcb87a248..de25313c6 100644--- a/src/paperless/settings.py+++ b/src/paperless/settings.py@@ -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"+ )}}