From f6207624561dcc413ada4ab5189178f4cdb64ab4 Mon Sep 17 00:00:00 2001 From: Daniel Quinn Date: Sun, 10 Jan 2016 22:45:15 +0000 Subject: [PATCH] Safer place for the database --- data/.keep | 0 src/paperless/settings.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 data/.keep diff --git a/data/.keep b/data/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 85dfcecae..0064e9b48 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -79,9 +79,9 @@ WSGI_APPLICATION = 'paperless.wsgi.application' # https://docs.djangoproject.com/en/1.9/ref/settings/#databases DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + "default": { + "ENGINE": "django.db.backends.sqlite3", + "NAME": os.path.join(BASE_DIR, "..", "data", "db.sqlite3"), } } if os.environ.get("PAPERLESS_DBUSER") and os.environ.get("PAPERLESS_DBPASS"):