Safer place for the database

This commit is contained in:
Daniel Quinn 2016-01-10 22:45:15 +00:00
parent fe47f9f07e
commit f620762456
2 changed files with 3 additions and 3 deletions

0
data/.keep Normal file
View File

View File

@ -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"):