mirror of
https://github.com/correl/codereview.git
synced 2025-01-12 11:07:48 +00:00
Added simple haystack search
This commit is contained in:
parent
6c6c316cc6
commit
e5b26613a7
2 changed files with 7 additions and 0 deletions
2
search_sites.py
Normal file
2
search_sites.py
Normal file
|
@ -0,0 +1,2 @@
|
|||
import haystack
|
||||
haystack.autodiscover()
|
|
@ -84,6 +84,9 @@ AUTHENTICATION_BACKENDS = (
|
|||
'codereview.dashboard.auth.PAMBackend',
|
||||
)
|
||||
|
||||
HAYSTACK_SITECONF = 'codereview.search_sites'
|
||||
HAYSTACK_SEARCH_ENGINE = 'simple'
|
||||
|
||||
TEMPLATE_DIRS = (
|
||||
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
||||
# Always use forward slashes, even on Windows.
|
||||
|
@ -100,6 +103,8 @@ INSTALLED_APPS = (
|
|||
# Uncomment the next line to enable the admin:
|
||||
'django.contrib.admin',
|
||||
|
||||
'haystack',
|
||||
|
||||
'codereview.dashboard',
|
||||
'codereview.browser',
|
||||
'codereview.review',
|
||||
|
|
Loading…
Reference in a new issue