Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Safer place for the database

Daniel Quinnf6207624561d
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"):