title: gunicorn Failed to find attribute 'app' in 'app'
body: <p>I am hoping someone can help. I have been trying to launch my flask app on ubuntu. The app runs on dev mode, but when I try to run it with gunicorn, I get the following error:</p>
  <pre><code>[2022-07-24 21:55:44 +0000] [3710] [INFO] Starting gunicorn 20.1.0
  [2022-07-24 21:55:44 +0000] [3710] [INFO] Listening at: http://127.0.0.1:8000 (3710)
  [2022-07-24 21:55:44 +0000] [3710] [INFO] Using worker: sync
  [2022-07-24 21:55:44 +0000] [3711] [INFO] Booting worker with pid: 3711
  Failed to find attribute 'app' in 'app'.
  [2022-07-24 21:55:44 +0000] [3711] [INFO] Worker exiting (pid: 3711)
  [2022-07-24 21:55:44 +0000] [3710] [INFO] Shutting down: Master
  [2022-07-24 21:55:44 +0000] [3710] [INFO] Reason: App failed to load.
  
  
  Here is my app.py file
  from website import create_app
  
  if __name__ == &quot;__main__&quot;:
      app = create_app()
      app.run(debug=True)
  </code></pre>
  <p>Here the site structure.</p>
  <p>Website</p>
  <ul>
  <li>script</li>
  <li>static
  -templates
  -apy.py
  -auth.py
  -db
  -models
  -views
  -<strong>innit</strong>.py
  app.py</li>
  </ul>
  <p>Can someone help?</p>
  <p>Thanks</p>
  <p>S</p>