Στις Παρασκευή, 9 Ιουλίου 2021 στις 4:10:29 μ.μ. UTC+3, ο χρήστης Chris 
Angelico έγραψε:
> On Fri, Jul 9, 2021 at 11:07 PM vergos....@gmail.com 
> <vergos....@gmail.com> wrote: 
> > please tell me what i need to do to be able to see error messages in 
> > browser and not only via console: 
> > 
> > app = Flask(__name__) 
> > app.debug = True 
> > application = app 
> > 
> > The above only displays error via console into the error_log, having to 
> > open it each time. how can i see it in browser?
> Until you're able to serve pages, you won't get anything in the browser. 
> 
> Nikos, you've come back to this list a few times over the years, and 
> each time, you're trying to host web sites with a very shaky 
> understanding of what's actually going on. Are you still trying to 
> provide hosting services to other people, and if so, have you - as was 
> advised multiple times in the past - dedicated a week to actually 
> learning how HTTP works and how web browsers and back end apps 
> communicate? 
> 
> ChrisA

from werkzeug.debug import DebuggedApplication

app = Flask(__name__)
application = app
application = DebuggedApplication(app, True)

I even tries this solution and i still see errors appear *only* in the 
error_log. WHY?!
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to