Skip to content

Commit

Permalink
Safer place for the database
Browse files Browse the repository at this point in the history
  • Loading branch information
danielquinn committed Jan 10, 2016
1 parent fe47f9f commit f620762
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Empty file added data/.keep
Empty file.
6 changes: 3 additions & 3 deletions src/paperless/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@
# 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"):
Expand Down

0 comments on commit f620762

Please sign in to comment.