From fad6e7284af285188db58e90b8c0cd1e997aad62 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Fri, 8 Jan 2021 13:27:57 +0100 Subject: [PATCH] fixes #290 --- src/paperless/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 8c91938aa..d0e32b4a0 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -90,7 +90,6 @@ INSTALLED_APPS = [ "documents.apps.DocumentsConfig", "paperless_tesseract.apps.PaperlessTesseractConfig", "paperless_text.apps.PaperlessTextConfig", - "paperless_tika.apps.PaperlessTikaConfig", "paperless_mail.apps.PaperlessMailConfig", "django.contrib.admin", @@ -461,6 +460,9 @@ PAPERLESS_TIKA_GOTENBERG_ENDPOINT = os.getenv( "PAPERLESS_TIKA_GOTENBERG_ENDPOINT", "http://localhost:3000" ) +if PAPERLESS_TIKA_ENABLED: + INSTALLED_APPS.append("paperless_tika.apps.PaperlessTikaConfig") + # List dates that should be ignored when trying to parse date from document text IGNORE_DATES = set() for s in os.getenv("PAPERLESS_IGNORE_DATES", "").split(","):