title: How to see if a Flask app is being run on localhost?
body: <p>I want my Flask app to have different behaviors when it is being run on localhost and when it is being hosted online. How can I detect from a flask app when it is on localhost and when it is deployed?</p>