Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


dylan kane
dylan kane
2,772 Points

Can somebody explain to how to do this last step in this tutorial

I am attempting to add search functionality to my Django app by using haystack and elasticsearch, and after doing some searching on google I came across this tutorial:


I follow it through the whole way, but at the end it seems to wrap it up in a rather abrupt manner, for I didnt fully understand the last step. Could someone explain to me what the last bit of html/python was and how I can link this all to a form so I can actually search for things. Also one last thing, in the tutorial when you add the url:

(r'^search/', include('haystack.urls')),

it isnt preceded by "url" like in other django urls, is this conventional or typo or what? Any answers would be great, thanks.