title: How can I add images to Flask?
body: <p>I need to add an image to my Flask webpage. And in my index.html file in templates directory there is this tag: <code>&lt;img src="image.jpg"&gt;</code></p>
  
  <pre><code>from flask import Flask, render_template
  
  app = Flask(__name__)
  @app.route("/")
  def index():
      return render_template("index.html")
  
  @app.route("/image.jpg")
  def image():
      return render_template("image.jpg")
  </code></pre>
  
  <p>- it does not work. I wanted an image in my webpage, but in my terminal it says that there is a 404 error with getting the image. </p>