Posts

Showing posts from April, 2014

Tornado Web Framework - Flash Messages

Implement flash messages in Tornado web framework.ProblemSuppose you have a URL for editing an object under /OBJECT-ID/edit. Normally when user fills in the information on that page and presses the submit button, the request is sent to /OBJECT-ID/update which persists the data. But if the the data provided by user is not valid, you need to redirect user the to /OBJECT-ID/edit along with the provided data and validation errors, so s/he can correct it.
The clean and preferred way to do this is by…