title: Flask:Expected an indented block
body: <p>So I am getting an error in my flask app which says:</p>
  
  <pre><code>File app.py, line 13
  first = request.form.get('first')
  
  IndentationError: expected an indented block
  </code></pre>
  
  <p>Here is my app.py code </p>
  
  <pre><code>import time
  import requests
  import requests_cache
  
  from flask import Flask, render_template, request, jsonify
  
  app = Flask(__name__)
  
  
  
  @app.route('/', methods=['GET', 'POST'])
  def home():
      if request.method == 'POST':
          first = request.form.get('first')
          url = "http://myAPIURL.com/ws/spm/search/perfid/{0}".format(first)
          response = requests.get(url)
          return jsonify(response.json())
      return render_template('index.html')
  
  
  if __name__ == '__main__':
      app.run(debug=True)
  </code></pre>
  
  <p>I have checked the indentations and they seem to be fine to me,</p>
  
  <p>Can someone please point out what I am doing wrong?</p>