if __name__ == '__main__': app.run(debug=True) # OR a better practice: # see stackoverflow answer: https://stackoverflow.com/questions/52162882/set-flask-environment-to-development-mode-as-default