how to retrieve input value of html form if form is in django for loop
问题 I got a situation.I have a django template ip_form.html given bellow. <form method = "GET"> {% for val in value_list %} <input type='text' value = '{{ val }}'> {{ val }}</input> {% endfor %} </form> I want to tell you that, I have unknown no of val in value_list(may be zero). So may not use django form.py( and also I am getting value in certain time of a particular view function, i.e. don't know weather it will occur all time) Let's say in views.py def view1(request): value_list = [1,2,3,4,5]