From 6d392ab5e77a7d6dfee4e9b046fba1073ed9f86d Mon Sep 17 00:00:00 2001 From: Jonathan DeMasi Date: Thu, 2 Apr 2020 21:45:13 -0600 Subject: okay we roll with it --- .gitignore | 1 + jthanio/settings/base.py | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.gitignore b/.gitignore index c3fbfe9..9e975df 100644 --- a/.gitignore +++ b/.gitignore @@ -141,3 +141,4 @@ dmypy.json # Compiled Assets media +search_index/ diff --git a/jthanio/settings/base.py b/jthanio/settings/base.py index 44c52e7..be8cd28 100644 --- a/jthanio/settings/base.py +++ b/jthanio/settings/base.py @@ -163,3 +163,12 @@ WAGTAIL_SITE_NAME = "jthanio" # Base URL to use when referring to full URLs within the Wagtail admin backend - # e.g. in notification emails. Don't include '/admin' or a trailing slash BASE_URL = 'https://jthan.io' + +ROOT_DIR = os.path.abspath(os.path.dirname(__name__)) +WAGTAILSEARCH_BACKENDS = { + 'default': { + 'BACKEND': 'wagtail_whoosh.backend', + 'PATH': os.path.join(ROOT_DIR, 'search_index'), + 'LANGUAGE': 'en', + }, +} -- cgit v1.2.3