How to Print to Stdout in Flask Using Python


If you are trying to print() to the console/stdout in your Flask app, but nothing is happening, then you just need to flush your prints, as follows:

print('This will print', flush=True)