Python Forum

Full Version: Flask: Error output to the browser instead of error_log
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone explain to me now that i moves from flask's development server to Apache production server how i'am supposed to enable error output to the browser?

Isn't there a more easy approach to this? What iam reading in the doc is very complicated to me? in bottle framework i was just using app.debug = True. Is there something similat in Flask too?!
you won't get error messages like you do in php if that's what you want.
You can check the apache logs or use https://flask-debugtoolbar.readthedocs.io/en/latest/ .

use this for debug logs:
app.config.update(DEBUG = True )