diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 1e946d0b0..dcb87a248 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -98,7 +98,7 @@ DATABASES = { "NAME": os.path.join(os.getenv("PAPERLESS_DBLOCATION",os.path.join(BASE_DIR, "..", "data")), "db.sqlite3") } } -print(DATABASES) + if os.getenv("PAPERLESS_DBUSER") and os.getenv("PAPERLESS_DBPASS"): DATABASES["default"] = { "ENGINE": "django.db.backends.postgresql_psycopg2",