from django.conf.urls.defaults import *
from courant.core.search.views import *

from haystack.forms import ModelSearchForm
from haystack.query import SearchQuerySet
from haystack.views import SearchView

urlpatterns = patterns('',
    url(r'', CourantSearchView(template='search/results_page.html',
                               form_class=ModelSearchForm,
                               searchqueryset=SearchQuerySet().all()), name="search"),
)

from django.conf.urls.defaults import *
from courant.core.search.views import *

from haystack.forms import ModelSearchForm
from haystack.query import SearchQuerySet
from haystack.views import SearchView

urlpatterns = patterns('',
    url(r'', SearchView(template='search/results_page.html',
                        load_all=True,
                        form_class=ModelSearchForm,
                        searchqueryset=SearchQuerySet().all()), name="search"),
)

Remove all Haystack customization of search view pending further investigations.
Remove all Haystack customization of search view pending further investigations.

  from django.conf.urls.defaults import *
  from courant.core.search.views import *
  
  from haystack.forms import ModelSearchForm
  from haystack.query import SearchQuerySet
  from haystack.views import SearchView
  
  urlpatterns = patterns('',
-     url(r'', CourantSearchView(template='search/results_page.html',
+     url(r'', SearchView(template='search/results_page.html',
+                         load_all=True,
-                                form_class=ModelSearchForm,
+                         form_class=ModelSearchForm,
-                                searchqueryset=SearchQuerySet().all()), name="search"),
+                         searchqueryset=SearchQuerySet().all()), name="search"),
  )
  
Remove all Haystack customization of search view pending further investigations.
## Code Before:
from django.conf.urls.defaults import *
from courant.core.search.views import *

from haystack.forms import ModelSearchForm
from haystack.query import SearchQuerySet
from haystack.views import SearchView

urlpatterns = patterns('',
    url(r'', CourantSearchView(template='search/results_page.html',
                               form_class=ModelSearchForm,
                               searchqueryset=SearchQuerySet().all()), name="search"),
)

## Instruction:
Remove all Haystack customization of search view pending further investigations.
## Code After:
from django.conf.urls.defaults import *
from courant.core.search.views import *

from haystack.forms import ModelSearchForm
from haystack.query import SearchQuerySet
from haystack.views import SearchView

urlpatterns = patterns('',
    url(r'', SearchView(template='search/results_page.html',
                        load_all=True,
                        form_class=ModelSearchForm,
                        searchqueryset=SearchQuerySet().all()), name="search"),
)
