title: How to run multi for loop in Django template?
body: <p>I have a template in which i need to run two for loop simultanously. For example:</p>
  
  <pre><code>#pseudocode
  {% for x in one%} and {% for y in two %}
   {{x}}, {{y}}
  {% endfor %}
  </code></pre>
  
  <p>PS: The above code is pseudo. I also found a package to do it i.e. <a href="http://pypi.python.org/pypi/django-multiforloop/0.2.1" rel="nofollow">Djnago-multiforloop</a></p>
  
  <p>Is there any other way to do it ?</p>
  
  <h2> Updated!</h2>
  
  <p>I have a dictionary with named <code>objects</code> in python like this:</p>
  
  <pre><code>{&lt;User: x&gt;: True, &lt;User: y&gt;: False}
  </code></pre>
  
  <p>Now i want to use these value in my Django-template code:</p>
  
  <pre><code> {% for share_user in objects %} and {% for key, value in objects.iteritems %}
      &lt;tr&gt;
          &lt;td&gt;{{ share_user }}&lt;/td&gt; 
          &lt;td&gt;&lt;a href="{% url share_edit type type.pk share_user.id %}"&gt;{{ value}}&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;   
  {% endfor %}
  </code></pre>
  
  <p>I want to merge the two <code>for loop</code>  so that the below code in template work successfully.</p>
  
  <p>Desired output:
  For the first iteration:</p>
  
  <pre><code>x
  True
  </code></pre>
  
  <p>For the second iteration:</p>
  
  <pre><code>Y
  False
  </code></pre>
  
  <p>In my views.py:</p>
  
  <pre><code> permission_obj = somemodels.objects.filter(object_id=object_id)
   for perm in permission_obj:
      s_user.append(perm.user)
      s_edit.append(perm.edit)
   objects = dict(zip(s_user,s_edit))
   extra_context = {
     'objects' : objects
      }
  </code></pre>