Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
cffafb56
Commit
cffafb56
authored
Feb 10, 2016
by
Okhin
Browse files
Setup of haystack to use whoosh
parent
a3bbe5db
Changes
1
Hide whitespace changes
Inline
Side-by-side
nnmon/settings.py
View file @
cffafb56
...
...
@@ -202,6 +202,14 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
DEFAULT_FROM_EMAIL
=
'nnmon@nnmon.lqdn.fr'
# HAYSTACK CONFIGURATION
HAYSTACK_CONNECTIONS
=
{
'default'
:
{
'ENGINE'
:
'haystack.backends.whoosh_backend.WhooshEngine'
,
'PATH'
:
os
.
path
.
join
(
os
.
path
.
dirnam
(
__file__
),
'whoosh_index'
),
},
}
try
:
from
local_settings
import
*
except
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment