[Flask] single function handling form from base template
coreybrett at gmail.com
Sat Sep 10 19:26:41 EDT 2016
You could setup a "search" view and have the form's action set to GET to
the search view function. Do anything you want in the view function with
the GET args.
On Sep 10, 2016 7:13 PM, "Alex Alex" <alex-alex-90 at wp.pl> wrote:
> I have another question: I am using blueprints for different application
> modules but I have a single search function that handles form from
> base.html template that is being extended by all blueprints. How can I
> handle it since I'm using flash() to return search result and I need to
> redirect to particular page the query has been entered? I guess
> request.url_rule is the way to go. Any help will be greatly appreciated.
> Best Regards,
> Flask mailing list
> Flask at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Flask