title: python flask how to display image
body: <p>My logo.jpg which is stored in /home/sally_venka/upload  is not appearing.</p>
  
  <p>This is my file index.html:</p>
  
  <pre><code>&lt;body&gt;
  &lt;html&gt;    
  &lt;form method="GET" action="/show_index1"&gt;
  &lt;img src="{{ user_image }}" alt="User Image" width="200" height="85"&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my file server.py:</p>
  
  <pre><code>UPLOAD_FOLDER1 = os.path.join('sally_venka', 'upload')
  app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER1 
  @app.route('/show_index1',methods=['GET'])
  def show_index1():
      full_filename = os.path.join(app.config['UPLOAD_FOLDER'], 'logo.jpg')
      render_template("index.html", user_image = full_filename)
      return redirect('/')
  </code></pre>