i just moved from bottleframework to flask. I changes what needed to be altered to convert the code and when i run it i just get "Internal server error" Running tail -f ../logs/error_log i get no errors. How can i find out what is the culprit her
vergos....@gmail.com
vergos.nikolas at gmail.com
Fri Jul 9 09:33:47 EDT 2021
Στις Παρασκευή, 9 Ιουλίου 2021 στις 4:10:29 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
> On Fri, Jul 9, 2021 at 11:07 PM vergos.... at gmail.com
> <vergos.... at 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?!
More information about the Python-list
mailing list