title: Flask confusion with app
body: <p>I am starting a <code>flask</code> project, and in my code I have</p>
  
  <pre><code>from flask import Flask, render_template, abort
  app = Flask(__name__)
  </code></pre>
  
  <p>Now what exactly is <code>app</code>?</p>
  
  <p>I am following <a href="http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world" rel="noreferrer">this guide</a> and I am particularly confused about the structure because he has chosen to have directory named <code>app/</code> and is his <code>app/__init__.py</code> he has</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  from app import views
  </code></pre>
  
  <p>and in his <code>app/views.py</code> he has</p>
  
  <pre><code>from app import app
  </code></pre>
  
  <p>What the hell is it with all these <code>app</code>'s?!</p>