title: Redirecting to URL in Flask
body: <p>I'm new to Python and Flask and I'm trying to do the equivalent of <code>Response.redirect</code> as in C# - ie: redirect to a specific URL - how do I go about this?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import os
  from flask import Flask
  
  app = Flask(__name__)
  
  @app.route('/')
  def hello():
      return 'Hello World!'
  
  if __name__ == '__main__':
      # Bind to PORT if defined, otherwise default to 5000.
      port = int(os.environ.get('PORT', 5000))
      app.run(host='0.0.0.0', port=port)
  </code></pre>