2024-01-08 13:54:00 +05:30
|
|
|
import os
|
|
|
|
|
from horilla import settings
|
|
|
|
|
|
2024-03-10 19:37:46 +05:30
|
|
|
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
|
|
|
|
|
},
|
2024-01-08 13:54:00 +05:30
|
|
|
},
|
2024-03-10 19:37:46 +05:30
|
|
|
)
|
2024-01-08 13:54:00 +05:30
|
|
|
|
2024-03-10 19:37:46 +05:30
|
|
|
setattr(
|
|
|
|
|
settings,
|
|
|
|
|
"HAYSTACK_SIGNAL_PROCESSORS",
|
|
|
|
|
{
|
|
|
|
|
"helpdesk": "helpdesk.signals.SignalProcessor",
|
|
|
|
|
},
|
|
|
|
|
)
|