79706036

Date: 2025-07-18 10:31:02
Score: 2
Natty:
Report link

I have used return redirect(url_for("user")) instead of explicitly rendering the user.html again and again, that method works too..

This works because if I redirect then the page reloads again with a "GET" request instead of rendering user.html in "POST" request, since data cannot be retrieved and displayed from the DB if the current method is post

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sam