Typerror() in python while passing parameters to the route [duplicate]
Clash Royale CLAN TAG #URR8PPP Typerror() in python while passing parameters to the route [duplicate] This question already has an answer here: I need to pass parameter to routes using url_for() function and redirect() I think I did the same. But, I get TypeError: book() missing 1 required positional argument: 'book_title' I know that the parameter book_title is not being recieved by the book() function in my code and thats why the error. But, I dont know what's going wrong behind the scenes. These are my routes url_for() redirect() TypeError: book() missing 1 required positional argument: 'book_title' book_title book() @app.route('/search/<title>/',methods=['GET','POST']) def btitle(title): book_title = db.execute("SELECT title,author,isbn from books WHERE (title LIKE :title)",params={"title":title}).fetchall() if request.method == 'GET': #book_title = db.execute("SELECT title,autho...