@app.route('/display/<filename>')
def foto(filename):
    return redirect(url_for('static', filename=('fotosPerfil/' + filename)), code=301)
@app.route('/display/<filename>')
def foto(filename):
    return redirect(url_for('static', filename=('fotosPerfil/' + filename)), code=301)