Welcome to the Treehouse Community
Looking to learn something new?
Brendan WhitingFront End Web Development Techdegree Graduate 84,704 Points
Nothing happens when I click on the 'Search' button.
When I click on the 'Search' button with 'text' (as he does at 4:20), nothing happens for me, no results. I compared all my text to the downloaded text from the project files, and they're the same. I even flew the project files into a workspace and tried it out and I got the same error. I'm stumped.
Chris FreemanTreehouse Moderator 68,082 Points
The search text "
text" does not seem to have any results. Blank results are still results. Try searching for "basics" or "java". This returned results.
If in doubt, you can always enter the interactive shell and check for data:
$ ./manage.py shell Python 3.5.0 (default, Mar 14 2016, 21:57:24) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux Type "help", "copyright", "credits" or "license" for more information InteractiveConsole) >>> from courses.models import Course >>> Course.objects.filter(description__icontains='text')  >>> Course.objects.filter(description__icontains='basics') [<Course: Python Basics>, <Course: Customizing Django Templates>, <Course: Build a Simple Android App>, <Course: SQL Basics>, <Course: jQuery Basics>] >>>
Might be misunderstanding you, but try changing the coding of the <button> from <button type="button"> as Kenneth has in the video to <button type="submit"> and your button should work (as long as everything else works too!)