post-redirect-get

How to rewrite this Flask view function to follow the post/redirect/get pattern?

How to rewrite this Flask view function to follow the post/redirect/get pattern? Question: I have a small log browser. It retrieves and displays a list of previously logged records depending on user’s input. It does not update anything. The code is very simple and is working fine. This is a simplified version: @app.route(‘/log’, methods=[‘GET’, ‘POST’]) …

Total answers: 3