title: Failed to find the flaskblog error in flask
body: <p><a href="https://i.stack.imgur.com/tbywB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tbywB.png" alt="this is the error I am getting"></a>I am trying to run flask first app.</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route("/")
  def hello():
      return 'Hello world!'
  </code></pre>
  
  <p>and I have also used <code>export FLASK_APP=flaskblog.py</code></p>
  
  <p>But it is constantly getting the error </p>
  
  <blockquote>
    <p>Error: Failed to find Flask application or factory in module "flaskblog". Use "FLASK_APP=flaskblog:name to specify one.</p>
  </blockquote>