0

In Ruby on Rails I can type fail in the controller then go to the browser and view the list of params. How can I do that in flask(python) ?

davidism
  • 121,510
  • 29
  • 395
  • 339
hadyfarhat
  • 391
  • 1
  • 5
  • 17

1 Answers1

0

You need to use mode debug, like below:

if __name__ == '__main__':
    app.run(debug=True)

Now, you will be able to see any error from your browser.

ettanany
  • 19,038
  • 9
  • 47
  • 63