Commit d0315da5 authored by Chris Reffett's avatar Chris Reffett

Fire up haystack

parent 4e4aec04
...@@ -41,6 +41,7 @@ INSTALLED_APPS = ( ...@@ -41,6 +41,7 @@ INSTALLED_APPS = (
'south', 'south',
'django_gravatar', 'django_gravatar',
'autocomplete_light', 'autocomplete_light',
'haystack',
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
...@@ -125,3 +126,11 @@ SWAGGER_SETTINGS = { ...@@ -125,3 +126,11 @@ SWAGGER_SETTINGS = {
LOGIN_URL = '/login/' LOGIN_URL = '/login/'
LOGOUT_URL = '/logout/' LOGOUT_URL = '/logout/'
LOGIN_REDIRECT_URL = '/' LOGIN_REDIRECT_URL = '/'
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'),
},
}
...@@ -28,5 +28,6 @@ urlpatterns = patterns('', ...@@ -28,5 +28,6 @@ urlpatterns = patterns('',
#name='detail-student'), #name='detail-student'),
url(r'^profile/', profile, name='profile-detail'), url(r'^profile/', profile, name='profile-detail'),
#name='profile'), #name='profile'),
url(r'^search/', include('haystack.urls')),
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment