from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^', include('haystack.urls')),
)

from django.conf.urls.defaults import *
from haystack.views import SearchView
from haystack.forms import SearchForm

urlpatterns = patterns('',
    url(r'^$', SearchView(form_class=SearchForm), name='haystack_search'),
)

Convert to simpler search form
Convert to simpler search form

  from django.conf.urls.defaults import *
+ from haystack.views import SearchView
+ from haystack.forms import SearchForm
  
  urlpatterns = patterns('',
-     (r'^', include('haystack.urls')),
+     url(r'^$', SearchView(form_class=SearchForm), name='haystack_search'),
  )
  
Convert to simpler search form
## Code Before:
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^', include('haystack.urls')),
)

## Instruction:
Convert to simpler search form
## Code After:
from django.conf.urls.defaults import *
from haystack.views import SearchView
from haystack.forms import SearchForm

urlpatterns = patterns('',
    url(r'^$', SearchView(form_class=SearchForm), name='haystack_search'),
)
