django-haystack urlpatterns include('haystack.urls') where does it lead to?

Posted by Eugene on Stack Overflow See other posts from Stack Overflow or by Eugene
Published on 2012-04-16T05:25:51Z Indexed on 2012/04/16 5:29 UTC
Read the original article Hit count: 200

I've recently begun to learn/install django/haystack/solr.

Following the tutorial given in haystack site,

I have urlpatterns = pattern('', r'^search/', include('haystack.urls'))

I found haystack installed in /usr/local/lib/python2.6/dist-packages/haystack and located urls.py there.

It has

urlpatterns=patterns('haystack.views', url(r'^$', SearchView(), name='haystack_search'),)

I thought the second argument of url() should be callable object.
I looked at the views.py and SearchView is a class.
What is going on here?
What's get called eventually?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-haystack