[Flask] single function handling form from base template

Corey Boyle 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:

> Hi,
> 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,
> Alex
>
>
>
>
>
>
>
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20160910/a39bfeca/attachment.html>


More information about the Flask mailing list