title: Env. Variables not set while running Minimal Flask application
body: <p>I am trying to follow the flask documentation on my windows machine given at the following link:
  <a href="http://flask.pocoo.org/docs/0.11/quickstart/#debug-mode" rel="noreferrer">http://flask.pocoo.org/docs/0.11/quickstart/#debug-mode</a></p>
  
  <p>Firstly I wrote the code below in a python script:</p>
  
  <pre><code>from flask import Flask
  app = Flask(__name__)
  
  @app.route("/")
  def hello():
      return "Hello World!"
  
  if __name__ == "__main__":
      app.run(debug=True)
  </code></pre>
  
  <p>I saved this in a file called <code>run.py</code></p>
  
  <p>Then wrote this command in the command window:</p>
  
  <pre><code>set FLASK_APP = run.py 
  flask run
  </code></pre>
  
  <p>Upon running this, I am getting the following error:</p>
  
  <p><code>"Error: Could not locate flask application. You did not provide the FLASK_APP environment variable"</code></p>
  
  <p>I was expecting to get this instead:</p>
  
  <pre><code>Running on http://127.0.0.1:5000/
  </code></pre>
  
  <p>Can somebody tell me how to fix this?</p>