Create a Search bar with Django || Book Website with Django part 4

preview_player
Показать описание
In this Django video, I will be building the Search Form of the Book Website using Django. The search form has two functions (i) The search form searches for a book in the database and returns the result in a html template. (ii) The search form also saves its inputs to the database and these saved inputs enable the admin of the site to know the books users are searching for, and if such book is not available in the database, the admin will have to add the book to the database.

Please subscribe
Рекомендации по теме
Комментарии
Автор

at the moment of putting {{search_form}}, I go to my view and in the search engine I put any word and it gives me this error in a blank page (HTTP ERROR 405), ("POST / book / all_books / HTTP / 1.1" 405 0 ), I don't know what the error would be or how to fix it

marvinjoelachasvilca
Автор

At 29:49 the issue you faced I am facing the same issue and am unable to fix it. I tried verifying it from your code, your code is working. But mine is still stuck at the same error and not even redirecting me to page which says book not available. Any help would be appreciated.

eduardodubois