title: 'return' outside function error - python
body: <p>In line 7, I get the error 'return' outside function and I have tried indention and that's not the issue so I'm not sure what is?</p>
  
  <pre><code> import psycopg2
      from flask import Flask, render_template, request
      app = Flask(__name__)
      def getConn():
          connStr=("dbname='----' user='----' password= '----' " )
      conn=psycopg2.connect(connStr)
      return conn
      @app.route('/')
      def home():
          return render_template('part3.html')
      @app.route('/displayStudent', methods =['GET'])
      def displayCustomer():
          @app.route('/addStudent', methods =['GET', 'POST'])
          def addLeadCustomer():
              if __name__ == "__main__":
                  app.run(debug = True)
  </code></pre>