Solution
{% for i in number %}
{% endfor %}
{% for i in number %}
{% endfor %}
@raffle.route('/path/with', methods=['GET', 'POST'])
@login_required
def my_route(data):
# do stuff with data variable
return render_template('another_template.html')