title: django slice numbers in template
body: <p>Is there a way to get multiple digits of a given number within a django template?</p>
  
  <p>For example: </p>
  
  <pre><code>{{ some_num|get_digit:2 }} 
  </code></pre>
  
  <p>will give you the second right most digit. For 1224531 it would be 3</p>
  
  <p>Is there a way to get the last 3 digits or the first 5 digits? Like python's slicing?</p>
  
  <p>something like:</p>
  
  <pre><code>{{ some_num|get_digits:2,5}}
  </code></pre>