title: error while deploying flask app on heroku : Failed to find attribute 'app' in 'app'
body: <p>i am trying to deploy my very simple flask app on heroku but when i try to access my heroku app its giving me this error: <code>An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.</code> i checked logs from the terminal and it says: <strong>Failed to find attribute 'app' in 'app'</strong>.</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>from flask import Flask
  
  app = Flask(__name__)
  
  @app.route('/')
  def index():
      return "VatsalayKhobragade.me"
  </code></pre>
  
  <p><strong>Project Structure</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/d01wR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d01wR.png" alt=""></a>
  *</p>
  
  <p><strong>Procifle</strong></p>
  
  <pre><code>web: gunicorn app:app
  </code></pre>
  
  <p><strong>Requirements.txt</strong></p>
  
  <pre><code>click==7.1.2
  Flask==1.1.2
  gunicorn==20.0.4
  itsdangerous==1.1.0
  Jinja2==2.11.2
  MarkupSafe==1.1.1
  Werkzeug==1.0.1
  </code></pre>
  
  <p>Please Help with this. what i am doing wrong here ?? </p>