Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
moved media location
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Winkler committed Oct 27, 2020
1 parent 131533d commit fc6a5b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
File renamed without changes.
Empty file added data/media/thumbnails/.keep
Empty file.
6 changes: 4 additions & 2 deletions src/paperless/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ def __get_boolean(key, default="NO"):

DATA_DIR = os.getenv('PAPERLESS_DATA_DIR', os.path.join(BASE_DIR, "..", "data"))

MEDIA_ROOT = os.getenv('PAPERLESS_DATA_DIR', os.path.join(DATA_DIR, "media"))

INDEX_DIR = os.path.join(DATA_DIR, "index")
ORIGINALS_DIR = os.path.join(DATA_DIR, "documents")
THUMBNAIL_DIR = os.path.join(DATA_DIR, "thumbnails")
ORIGINALS_DIR = os.path.join(MEDIA_ROOT, "documents")
THUMBNAIL_DIR = os.path.join(MEDIA_ROOT, "thumbnails")
MODEL_FILE = os.path.join(DATA_DIR, "classification_model.pickle")

# Quick-start development settings - unsuitable for production
Expand Down

0 comments on commit fc6a5b3

Please sign in to comment.