Added simple haystack search

This commit is contained in:
Correl Roush 2011-01-06 00:06:11 -05:00
parent 6c6c316cc6
commit e5b26613a7
2 changed files with 7 additions and 0 deletions

2
search_sites.py Normal file
View file

@ -0,0 +1,2 @@
import haystack
haystack.autodiscover()

View file

@ -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',