Answers for "python output screen in flask"

1

flask console log

from __future__ import print_function # In python 2.7
import sys

@app.route('/button/')
def button_clicked():
    print('Hello world!', file=sys.stderr)
    return redirect('/')
Posted by: Guest on July-05-2020

Code answers related to "python output screen in flask"

Python Answers by Framework

Browse Popular Code Answers by Language