Closed augisbud closed 5 years ago
I'm afraid that is going to remain an exercise for the student for at least a while.
@app.route('/img/<path:path>')
def send_img(path):
return send_from_directory('templates/img', path)
This worked for me
Hello, I want to add a background image, however I found that i need to add something in the comitupweb.py file, something like this
@app.route('/css/<path:path>') def send_css(path): return send_from_directory('templates/css', path)
how do i add an image, for eg. bg.png