Forums

Best practice for disabling Flask debug=true in Production?

What are best practices for running Flask in Production mode in Development but disabled in Production?

I accidentally left a small app as debug=true in Production but it does not seem to show the stack trace upon exception which I guess is desired but not expected.

Take a look at https://flask.palletsprojects.com/en/2.0.x/debugging/#in-production