from flask import session #You could also store the list in the session: session['my_list'] = some_list return redirect(url_for('show_list')) #Then in the template: {% for item in session.pop('my_list', []) %} {{ item }} {% endfor %}