Hi is there a way to dynamically load different images whenever I get into my flask app? I've got 10 images each is named 'accueil_X' with X is 0,1,2,...
app.py
@app.route('/', methods=("POST", "GET"))
def home():
random = randrange(10)
random_pix = 'accueil_'+str(random)+'.png'
HTML
<img src="{{url_for('static', filename='+{{ random_pix }}+')}}" width=100%, alt="">
Jinja seems to load an image named +{{ random_pix }}+: How can I fix this ? thank you