title: Flask hello.py basic app not running?
body: <p>when I enter python hello.py in the command line, I get another bash prompt. I'm not sure what could be the problem since I'm able to run a virtualenv and when I check which version of flask I have the latest version, <code>&gt;&gt;&gt; '0.10.1'</code> installed.</p>
  
  <pre><code>Opals-MacBook-Pro:~ opalkale$ cd myproject
  Opals-MacBook-Pro:myproject opalkale$ ls
  hello.py    venv
  Opals-MacBook-Pro:myproject opalkale$ . venv/bin/activate
  (venv)Opals-MacBook-Pro:myproject opalkale$ python hello.py
  (venv)Opals-MacBook-Pro:myproject opalkale$ 
  </code></pre>
  
  <p>The code for hello.py looks like:</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route("/")
  def hello():
      return "Hello World!"
  
      if __name__ == "__main__":
              app.run()
  </code></pre>
  
  <p>This code was taken from: <a href="http://flask.pocoo.org/docs/quickstart/#quickstart" rel="nofollow">http://flask.pocoo.org/docs/quickstart/#quickstart</a></p>