title: Start function on run with Flask
body: <p>I have a flask app</p>
  <pre><code>@app.route(&quot;/hello&quot;)
  def generater():
       return &quot;hello world&quot;
  
  if __name__ == '__main__':
      app.run()
  </code></pre>
  <p>My application runs fine, but i would like to know how I could make a request to <a href="http://127.0.0.1:5000/hello" rel="nofollow noreferrer">http://127.0.0.1:5000/hello</a> when I compile my code</p>