title: How to use 'While Loop' in Django template?
body: <p>I want to restrict user login session upto some definite number,after which the same user cant access login option, i want to do it with 'while loop', the way i used to do in python </p>
  
  <p>example</p>
  
  <pre><code>cnt = 0
  while i&lt;=5:
      print (i)
      cnt =+1
  </code></pre>
  
  <p>But how to exactly write them in 'Django Template Format'? Please be helping me out. Thank you.</p>