Solution 1
background-image:url("/static/a.jpg")
Solution 2
@app.route("/a.jpg", methods=["GET"])
def image():
return send_from_directory('path/to/image', 'a.jpg')
@app.route("/", methods=["GET"])
def image(name):
return send_from_directory('path/to/image', name)