Files
ihrm/horilla/haystack_configuration.py
2024-03-10 14:07:46 +00:00

24 lines
473 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",
},
)