title: Why does running the Flask dev server run itself twice?
body: <p>I'm using <a href="http://flask.pocoo.org/" rel="noreferrer">Flask</a> for developing a website and while in development I run flask using the following file:</p>
  <pre><code>#!/usr/bin/env python
  from datetime import datetime
  from app import app
  import config
  
  if __name__ == '__main__':
      print('################### Restarting @', datetime.utcnow(), '###################')
      app.run(port=4004, debug=config.DEBUG, host='0.0.0.0')
  </code></pre>
  <p>When I start the server, or when it auto-restarts because files have been updated, it always shows the print line twice:</p>
  <pre><code>################### Restarting @ 2014-08-26 10:51:49.167062 ###################
  ################### Restarting @ 2014-08-26 10:51:49.607096 ###################
  </code></pre>
  <p>Although it is not really a problem (the rest works as expected), I simply wonder why it behaves like this? Any ideas?</p>