Files
ihrm/horilla/haystack_configuration.py
Ashwanth Balakrishnan 58be33a8d7 Added Pre-Commit Hooks (#175)
* Added pre commit hook

* Run pre commit hook on all files

---------

Co-authored-by: Horilla <131998600+horilla-opensource@users.noreply.github.com>
2024-05-07 12:23:36 +05:30

25 lines
474 B
Python

import os
from horilla import settings
setattr(
settings,
"HAYSTACK_CONNECTIONS",
{
"default": {
"ENGINE": "haystack.backends.whoosh_backend.WhooshEngine",
"PATH": os.path.join(
settings.BASE_DIR, "whoosh_index"
), # Set the path to the Whoosh index
},
},
)
setattr(
settings,
"HAYSTACK_SIGNAL_PROCESSORS",
{
"helpdesk": "helpdesk.signals.SignalProcessor",
},
)