Python Forum

Full Version: Enable error logging to browser for Python's Flask under Apache + mod_wsgi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
what are the exact steps i need to execute in order to enable error logging to browser so i don't check the error_log via console any more?

I'am using Flask under Apache + mod_wsgi.

If i place app.debug = True within my app it does not do anything.

from flask import Flask, request, redirect, render_template, url_for

application = Flask(__name__)

app = application
app.config['TESTING'] = True
Can anybody help me send error output to the browser? Its really annoying logging via ssh and checking error_log with 'tail -f' each time.....